Quote:
Originally posted by Nichole_knc
Directory should be 755
Individual picture files should be 744
and it should be set to chown "username":users for directory and files.
|
Close, but not quite.
The individual picture files should be
644
The 3 digits refer to the permissions for the owner of the file, all users in the same group as the owner, and finally all other users. Each digit is obtained by adding the following:
1 for executable permission
2 for write permission
4 for read permission
So, if you don't want your pictures to be executable then you set it to 6 for the owner, which allows the owner to (4) read the file, plus (2) write the file. You set it to 4 for other users in the same group, and 4 for all other users to allow them to only read the file.
The permissions are slightly different for directories, so you have to make directories executable (in a sense) in order to allow the owner and others to browse within them. This means that you'll have to set the permissions for the files within each directory with the following command:
chmod 644 * (assuming there are no other files in the directory which should be executable)
Rather than using the '-R' flag from the parent directory.
In addition there are other properties which can be set through the permissions, but these aren't really relevant to this discussion, so I'll leave that as an exercise for the reader ;-)
Enjoy!
--- Cerbere
[edit] Granting write permission implies permission to edit or delete the file or directory. [/edit]