To add write permission for the group on a file called "file1":
type: chmod g+w file1
To remove read and write permission for the group and others on "file1":
type: chmod go-rw file1
To make "file1" and "file2" executable for yourself:
type: chmod u+x file1 file2
To deny the group and others cd permission to the directory "direct1":
type: chmod go-x direct1
To do several steps at once:
Remove read and write permission on file1 for others, add write permission for the group:
type: chmod g+w,o-rw file1
No comments:
Post a Comment