Sunday 18 December 2011

OS File Permission

The "chmod" command is used to alter file permissions after the file has been created.

chmod -R 777 abc

-R is to recursively change the permission.All the files in the directory have same permission.













































OwnerGroupOthersPermission
7 (u+rwx)7 (g+rwx)7 (o+rwx)read + write + execute
6 (u+wx)6 (g+wx)6 (o+wx)write + execute
5 (u+Rx)5 (g+Rx)5 (o+Rx)read + execute
4 (u+r)4 (g+r)4 (o+r)read only
2 (u+w)2 (g+w)2 (o+w)write only
1 (u+x)1 (g+x)1 (o+x)execute only

No comments:

Post a Comment