- Grant read and write permission to owner and read permission to group and other
using an absolute mode.
chmod 644 myfile
- Deny write permission to group and other.
chmod go-w myfile
- Clear all permissions that are currently set and grant read and write permissions
to owner, group, and other.
chmod =rw myfile
- Grant search permission on a directory to owner, group, and other if search
permission is set for one them.
chmod +X mydir
- Grant read, write, and execute permission to owner and read and execute permission
to group and other using an absolute mode.
chmod 755 myfile
- Clear all permissions for group and other.
chmod go= myfile
- Set the group permissions equal to the owner permission, but deny
write permission to the group.
chmod g=u-w myfile
- Set the set-user-id on execute bit and grant read, write, and execute permission
to the owner and execute permission for other using an absolute mode.
chmod 4701 myfile
Tuesday, April 8, 2014
chmod command
chmod u+x file.txt
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment