Login to Members Area

Choose the service you want to log in
24x7x365 Presence
Live Chat

Hosting Blog


Restricting a File or Directory using the Access Control List

ACL is the access control list for a specific file or directory. By default an ACL is associated with a directory and the files inside that directory inherit the ACL of the directory, if the files don't have any ACL set explicitly. With the help of ACLs we can control the access to files and directories.

To set the ACL, we can use the command below:-

setfacl -m <rules> <files>

For example:-

setfacl -m u:sachin:rw /home/somefile.txt

To remove the ACL from a file or directory, we can use the command below:-

setfacl -x u:sachin /home/somefile

Sachin Monday 14 October 2013 - 10:46 pm | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.