1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
File | User Permissions | Group Permissions | Other Permissions | ||||||
Type | Read | Write | Execute | Read | Write | Execute | Read | Write | Execute |
d | r | w | e | r | w | e | r | w | e |
chmod : change file permissions ,
eg, chmod 751 myfile,gives user full access, group read and execute permission, and others execute permission.
chown : change owner.
eg, chown wz file1, change the owner of file1 to the user wz.
chgrp : change group
eg, chgrp wz file1, change the file1 to belong to the group wz.