<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Linux%3A_Access_Control_Lists</id>
	<title>Linux: Access Control Lists - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Linux%3A_Access_Control_Lists"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Linux:_Access_Control_Lists&amp;action=history"/>
	<updated>2026-05-04T17:18:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Linux:_Access_Control_Lists&amp;diff=3104&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;== Access Control Lists ==  Access control lists provide a more fine grained level of file permissions.  They allow access to a file or folder for a specific user.    == Defau...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Linux:_Access_Control_Lists&amp;diff=3104&amp;oldid=prev"/>
		<updated>2013-08-17T16:57:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Access Control Lists ==  Access control lists provide a more fine grained level of file permissions.  They allow access to a file or folder for a specific user.    == Defau...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Access Control Lists ==&lt;br /&gt;
&lt;br /&gt;
Access control lists provide a more fine grained level of file permissions.  They allow access to a file or folder for a specific user.  &lt;br /&gt;
&lt;br /&gt;
== Default ACL ==&lt;br /&gt;
&lt;br /&gt;
By default all files have an ACL associated with it.   When looking at the default ACL the output is the same as the &amp;#039;ls -l&amp;#039; command.  It shows the basic ugo/rwx permissions.  The ACL for the anaconda-ks.cfg is shown below.  The permissions show that the file owner &amp;#039;root&amp;#039; has read and write permissions on the file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@compute009 ~]# getfacl anaconda-ks.cfg&lt;br /&gt;
# file: anaconda-ks.cfg&lt;br /&gt;
# owner: root&lt;br /&gt;
# group: root&lt;br /&gt;
user::rw-&lt;br /&gt;
group::---&lt;br /&gt;
other::---&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==  Checking the ACL ==&lt;br /&gt;
&lt;br /&gt;
The ACL can be be checked withe the getfacl command.  The output is shown above. &lt;br /&gt;
&lt;br /&gt;
== Modifying the ACL ==&lt;br /&gt;
&lt;br /&gt;
The ACL can be modified with the setfacl command.  &lt;br /&gt;
&lt;br /&gt;
To add an entry to the ACL:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
setfacl -m u:&amp;lt;user&amp;gt;:rx &amp;lt;file&amp;gt;  #add/modify user with read and write permissions&lt;br /&gt;
setfacl -m g:&amp;lt;group&amp;gt;:w &amp;lt;file&amp;gt;  #add/modify group with write permissions&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove an entry from the ACL:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
setfacl -x u:&amp;lt;user&amp;gt; &amp;lt;file&amp;gt;  #remove user&lt;br /&gt;
setfacl -x g:&amp;lt;group&amp;gt; &amp;lt;file&amp;gt;  #remove group &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To revert the ACL:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
setfacl -b &amp;lt;file&amp;gt;  #remove all ACL entries&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  ACL Directory ==&lt;br /&gt;
&lt;br /&gt;
Setting the ACL on a file is not enough. The directory in which the folder is stored must also have the ACL modifed.&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>