Re: Directory permissions
- From: Robert Binkley <leebinkley@xxxxxxxxx>
- Date: Tue, 27 Jun 2006 11:44:39 -0700
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
- Follow-Ups:
- Thank you all for the Directory permissions review
- From: Karen Boddy
- Thank you all for the Directory permissions review
- References:
- Directory permissions
- From: Karen Boddy
- Directory permissions
- Prev by Date: Re: Directory permissions
- Next by Date: Re: "shadow" a user?
- Previous by thread: Re: Directory permissions
- Next by thread: Thank you all for the Directory permissions review
- Index(es):
Relevant Pages
|