<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>techslaves.org &#187; acl</title>
	<atom:link href="http://techslaves.org/tag/acl/feed/" rel="self" type="application/rss+xml" />
	<link>http://techslaves.org</link>
	<description>Owned (and fascinated) by technology!</description>
	<lastBuildDate>Thu, 23 Feb 2012 04:55:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>When using Syncrepl&#8230;</title>
		<link>http://techslaves.org/2010/09/01/when-using-syncrepl/</link>
		<comments>http://techslaves.org/2010/09/01/when-using-syncrepl/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 01:23:35 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openldap]]></category>
		<category><![CDATA[synrepl]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=75</guid>
		<description><![CDATA[Quick OpenLDAP tip boys &#38; girls&#8230; When using syncrepl to replicate from a master LDAP server to a slave LDAP server, always remember to configure the ACLs on the master LDAP server to allow the &#8220;sync dn&#8221; to read everything. I know it sounds entirely obvious but today I realized that the order in which [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/09/08/migration-weekend-success/' rel='bookmark' title='Migration Weekend: Success'>Migration Weekend: Success</a></li>
<li><a href='http://techslaves.org/2010/10/05/ldap-user-management-tools-and-user-private-groups/' rel='bookmark' title='LDAP User Management Tools and User Private Groups'>LDAP User Management Tools and User Private Groups</a></li>
<li><a href='http://techslaves.org/2010/10/26/is-ubuntu-ready-for-the-enterprise/' rel='bookmark' title='Is Ubuntu Ready for the Enterprise?'>Is Ubuntu Ready for the Enterprise?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Quick OpenLDAP tip boys &amp; girls&#8230;</p>
<p>When using syncrepl to replicate from a master LDAP server to a slave LDAP server, always remember to configure the ACLs on the master LDAP server to allow the &#8220;sync dn&#8221; to read everything.</p>
<p>I know it sounds entirely obvious but today I realized that the order in which I had defined the ACLs on the master LDAP server was preventing the sync dn from reading the &#8220;userPassword&#8221; attribute and thus also preventing it from syncing it to the slave. The consequence of which was that users would not be able to authenticate against the slave server! Shit!</p>
<p>Of course, since everything else was syncing properly, all the NSS (lookup) stuff worked fine but anything authentication related like PAM wouldn&#8217;t work because the user bind would fail with &#8220;Invalid credentials&#8221; in /var/log/secure. It had a been some time since I tested authentication so I must never have actually tested authentication against the slave (whoops!) and thus didn&#8217;t notice until now. I know I tested lookups but testing authentication must have slipped by somehow. Grrr, testing.</p>
<p>Good thing I caught the problem early and it never escalated into a problem, that really could have sucked down the line.</p>
<p>Don&#8217;t make the same mistake I did.</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/09/08/migration-weekend-success/' rel='bookmark' title='Migration Weekend: Success'>Migration Weekend: Success</a></li>
<li><a href='http://techslaves.org/2010/10/05/ldap-user-management-tools-and-user-private-groups/' rel='bookmark' title='LDAP User Management Tools and User Private Groups'>LDAP User Management Tools and User Private Groups</a></li>
<li><a href='http://techslaves.org/2010/10/26/is-ubuntu-ready-for-the-enterprise/' rel='bookmark' title='Is Ubuntu Ready for the Enterprise?'>Is Ubuntu Ready for the Enterprise?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2010/09/01/when-using-syncrepl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>POSIX Default ACLs, umask and Project Directories</title>
		<link>http://techslaves.org/2010/04/23/posix-default-acls-umask-and-project-directories/</link>
		<comments>http://techslaves.org/2010/04/23/posix-default-acls-umask-and-project-directories/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 22:32:42 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=48</guid>
		<description><![CDATA[I&#8217;ve recently come across a situation where the inherent design of POSIX ACLs has left me scratching my head for a solution to the problem of setting up a &#8220;project&#8221; or &#8220;group share&#8221; directory on Linux. The problem is as follows: We have several different projects or groups that desire a directory where any and [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/05/18/cfengine-3-snippets-part-1-denyhosts/' rel='bookmark' title='Cfengine 3 Snippets Part 1: DenyHosts'>Cfengine 3 Snippets Part 1: DenyHosts</a></li>
<li><a href='http://techslaves.org/2011/08/24/freeipa-and-samba-3-integration/' rel='bookmark' title='FreeIPA and Samba 3 Integration'>FreeIPA and Samba 3 Integration</a></li>
<li><a href='http://techslaves.org/2010/09/01/when-using-syncrepl/' rel='bookmark' title='When using Syncrepl&#8230;'>When using Syncrepl&#8230;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently come across a situation where the inherent design of POSIX ACLs has left me scratching my head for a solution to the problem of setting up a &#8220;project&#8221; or &#8220;group share&#8221; directory on Linux. The problem is as follows: We have several different projects or groups that desire a directory where any and every file created, copied or moved to said directory will become owned by a particular group and have group read/write permissions set automatically.</p>
<p>Most of the problem is solved through age-old UNIX techniques. For group ownership, all we need to do is setup the top-level directory to be owned by the &#8220;project&#8221; or &#8220;group share&#8221; group and setgid the directory:</p>
<pre>$ mkdir project1
$ chown .projgroup project1
$ chmod g+s project1</pre>
<p>This effectively forces every file created, moved or copied into the &#8220;project1&#8243; directory to be owned by group &#8220;projgroup&#8221;. So far, so good. The difficulties begin when we attempt to use default ACLs to enforce the permissions of any files created, moved or copied into the directory.</p>
<p>The POSIX ACL standard defines &#8220;default&#8221; ACLs which can be applied to a directory, which are in turn inherited by newly created/copied/moved child files and directories. While the default ACLs are inherited properly, the ACL mask when applied to files copied into the group share directory WITHOUT previous group write set prevents the files from being group writable!</p>
<pre>$ getfacl project1
# file: project1
# owner: root
# group: projgroup
user::rwx
group::rwx
other::r--
default:user::rw-
default:group::rw-
default:group:projgroup:rw-
default:mask::rwx
default:other::r--</pre>
<p>So far so good, right?</p>
<pre>$ ls -alh test
-rw-r--r--  1 user1 user 0 Apr 23 15:10 test
$ cp test project1
$ ls -alh project1/test
-rw-r--r--+ 1 user1 projgroup 0 Apr 23 15:10 project1/test</pre>
<p>What the&#8230; ?!?! No group write? Noooooo!</p>
<pre>$ getfacl project1
# file: project1/test
# owner: user1
# group: projgroup
user::rw-
group::rw-			#effective:r--
group:projgroup:rw-		#effective:r--
mask::r--
other::r--</pre>
<p>And so we have the great POSIX ACL mask problem, which is by design in fact. Still looking for a complete solution that doesn&#8217;t involve global trying to force a specific umask on every account&#8230; It would be nice if I could ensure that every file had group write set before it was copied into the group share directory but alas, I cannot. Telling users to manually check and change permissions is also a pain. Cron jobs to change group write recursively is also ugly. Please, someone provide me with the solution.</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/05/18/cfengine-3-snippets-part-1-denyhosts/' rel='bookmark' title='Cfengine 3 Snippets Part 1: DenyHosts'>Cfengine 3 Snippets Part 1: DenyHosts</a></li>
<li><a href='http://techslaves.org/2011/08/24/freeipa-and-samba-3-integration/' rel='bookmark' title='FreeIPA and Samba 3 Integration'>FreeIPA and Samba 3 Integration</a></li>
<li><a href='http://techslaves.org/2010/09/01/when-using-syncrepl/' rel='bookmark' title='When using Syncrepl&#8230;'>When using Syncrepl&#8230;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2010/04/23/posix-default-acls-umask-and-project-directories/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

