Skip navigation.
Home

file permissions ?

Hi Paul, hope you come by here to answer this.

I forget the 4-5 common file permissions I need to use.755 for my cgi files is bout the only one I can remember.

Can ya drop me a quick line telling me the others? lol

Thanks,

Bud aka web-user

Most things should be 644.

Most things should be 644. CGI files and directories should be 755.

For PHP to edit files, they need to have 666 permissions, and if they are PHP configuration files that need to be executed, 777 permissions. Those are dangerous permissions, and a reason to prefer Perl or Python over PHP, if you're developing your own apps.

(Before everyone else gets confused, Bud can run CGI permissions on his account, unlike most Domania users. We're working on providing that to everybody.)


I don't like to see obscurantist sesquipedalianisms where simple words will do. It's not a matter of etymology but one of clarity.

Cool, I vaguely remember a

Cool, I vaguely remember a permission to set a directory to prevent viewing it in its contenet-I am really gonna confue people now-lol

Thanks,

Bud aka web-user

Your permissions, as an SSH

Your permissions, as an SSH user, are the same that your CGI applications have: the first of the three numbers. Apache (the http daemon) and PHP use the last of the three numbers.

7 = read/write/execute (entering a directory is executing it.)
6 = read/write
5 = read/execute
4 = read only
3 = write/execute (not particularly useful)
2 = write only (useful for a printer, not much else)
1 = execute only (but if you can't read it into memory, you can't execute it.
0 = can't do anything.

Some of us don't need to set file permissions in order to confuse people. Just born with it, I guess.


I don't like to see obscurantist sesquipedalianisms where simple words will do. It's not a matter of etymology but one of clarity.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.