In linux we know to define permissions we have chmod command but this command defines permission to user mode group mode or others only .But if we need to define different permissions to different users individually we need to think about setfacl and getfacl commands .
The setfacl command is use to define file or folder permissions for individual user or group other than user owner group owner or other (i.e ugo).
setfacl -m u:username:permission <file absolute or relative path>
-m -- option to modify permission
u -- for user
g -- for group
The getfacl command is use to check ACL implemented on a file or folder.
The setfacl command is use to define file or folder permissions for individual user or group other than user owner group owner or other (i.e ugo).
setfacl -m u:username:permission <file absolute or relative path>
-m -- option to modify permission
u -- for user
g -- for group
The getfacl command is use to check ACL implemented on a file or folder.
No comments:
Post a Comment