2

When I do something like

chmod 000 dir

I don't see the directory when I open the server but when I do this on individual files and not the directory

chmod 000 file.php

I still see that file in my directory when I open my server. Why? Why does the directory becomes invisible but the files work the normal way on the server?

NOTE In the command line it works like expected, the PHP interpreter can't open the file because of permissions.

2 Answers 2

0

You have to use the -R option:

chmod -R 000 dir

See Chmod 777 to a folder and all contents on Stack Overflow.

0

A more important question is: why are you trying to set anything to chmod 000?

You might want to read this definitive guide to CS50 permissions.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .