Re: Directory permissions



chmod +r file ? read is added for all
chmod -x file ? execute permission is removed for all
chmod u=rw,go= file ? read and write is set for the
owner, all permissions are cleared for the group and
others
chmod +rw file ? change the permissions of the file
file to read and write for all.
chmod -R u+w,go-w docs/ ? change the permissions of
the directory docs and all its contents to add write
access for the user, and deny write access for
everybody else.
chmod 666 file ? read and write access to the owner,
the group, and all others.

chmod 0755 file - Equivalent to u=rwx,go=rx. The 0
specifies no special modes.
chmod 4755 file - The 4 specifies set user ID.
find path/ -type d -exec chmod a-x {} \; - sets a-x
for all directories in tree starting from path/ (use
'-type f' to match files only).


Robert Lee Binkley leebinkley@xxxxxxxxx
IBM AIX Specialist Certified
HP-UX System Administration Certified
Work It's Nice To Be Important But It's More Important To Be Nice



Relevant Pages

  • Re: Exception thrown but nothing in message.log
    ... You should have the same permissions and owner/user ... You should read the man for chown and chmod ... case you are the new owner and can chown and chmod ... ubuntu-users mailing list ...
    (Ubuntu)
  • Re: PHP chmod Newbie Question
    ... that the owner is in, ... How does the server keep ... how do I create user groups for chmod to recognize? ... permission zones) permissions. ...
    (comp.lang.php)
  • Re: File and Folder permissions..
    ... Do not set fixed permissions that may be wrong, use chmod g+w to add write access for the group. ... Backup,,, A cronjob that change ctime every hour will tag all files as candidates for incremental backup, only change the files that need to be changed. ... A file has one owner, and if someone need to change it, just make a copy and change the copy, so your wife now are the owner of her version. ...
    (alt.os.linux.suse)
  • Re: apache permission problem please help
    ... Ok as anyone reading this thread knows i have huge mess on hands. ... chmod -R 701 home ... mailclients but i moved one and had to modify the permissions all over ... >>apache was unable to use these files. ...
    (freebsd-questions)
  • Re: setting file permissions on a web server
    ... If permissions are kept intact you can ... you transfer first and chmod on the server. ... Since I'm running Windows, I assume that I can't run the chmod line on my own computer. ... My web server uses Unix, but is it possible for me to have access to a command line for the server? ...
    (comp.lang.python)