<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Linux: Changing UIDs and GIDs for a user</title>
	<atom:link href="http://muffinresearch.co.uk/archives/2008/09/24/linux-changing-uids-and-gids-for-user/feed/" rel="self" type="application/rss+xml" />
	<link>http://muffinresearch.co.uk/archives/2008/09/24/linux-changing-uids-and-gids-for-user/</link>
	<description>the personal blog of Stuart Colville covering modern web development techniques and best practices</description>
	<lastBuildDate>Thu, 09 Feb 2012 02:58:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Farid</title>
		<link>http://muffinresearch.co.uk/archives/2008/09/24/linux-changing-uids-and-gids-for-user/comment-page-1/#comment-66716</link>
		<dc:creator>Farid</dc:creator>
		<pubDate>Thu, 03 Nov 2011 14:26:43 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/?p=397#comment-66716</guid>
		<description>I observed that the setuid, setgid and sticky bits are not retained after chown and chgrp commands are run. I had to track down the special files and reset these bits. 

My advice is to list them before making the above changes. Here&#039;s a command that I used to create my list:

&lt;pre&gt;&lt;code&gt;find / \( \( -perm -4000 -o -perm -2000 -o -perm -1000 \) -a \( -group  -o -user  \) \) \
 -printf &quot;\n%p&#124;%m\n&quot; -ls 2&gt; /dev/null&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I observed that the setuid, setgid and sticky bits are not retained after chown and chgrp commands are run. I had to track down the special files and reset these bits. </p>
<p>My advice is to list them before making the above changes. Here&#8217;s a command that I used to create my list:</p>
<pre><code>find / \( \( -perm -4000 -o -perm -2000 -o -perm -1000 \) -a \( -group  -o -user  \) \) \
 -printf "\n%p|%m\n" -ls 2&gt; /dev/null</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: rezwits</title>
		<link>http://muffinresearch.co.uk/archives/2008/09/24/linux-changing-uids-and-gids-for-user/comment-page-1/#comment-66588</link>
		<dc:creator>rezwits</dc:creator>
		<pubDate>Mon, 11 Jul 2011 22:24:53 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/?p=397#comment-66588</guid>
		<description>Thanks, this helps greatly for me with a mixed environment of Macs and Linux installs.  Where the UID and GID don&#039;t match for the initial users in Fedora and Ubuntu and Mac OS, then after that I LDAP everything and change accordingly.

Laters...</description>
		<content:encoded><![CDATA[<p>Thanks, this helps greatly for me with a mixed environment of Macs and Linux installs.  Where the UID and GID don&#8217;t match for the initial users in Fedora and Ubuntu and Mac OS, then after that I LDAP everything and change accordingly.</p>
<p>Laters&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Standardisation issues.</title>
		<link>http://muffinresearch.co.uk/archives/2008/09/24/linux-changing-uids-and-gids-for-user/comment-page-1/#comment-66469</link>
		<dc:creator>Standardisation issues.</dc:creator>
		<pubDate>Fri, 11 Feb 2011 11:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/?p=397#comment-66469</guid>
		<description>[...] users on all machines.  Changing the ownership of those files is done according to this web page: http://muffinresearch.co.uk/archives...gids-for-user/  Note that this is most easily done with a script which is set up once based on the UIDs and GIDs [...]</description>
		<content:encoded><![CDATA[<p>[...] users on all machines.  Changing the ownership of those files is done according to this web page: <a href="http://muffinresearch.co.uk/archives...gids-for-user/" rel="nofollow">http://muffinresearch.co.uk/archives&#8230;gids-for-user/</a>  Note that this is most easily done with a script which is set up once based on the UIDs and GIDs [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Colville</title>
		<link>http://muffinresearch.co.uk/archives/2008/09/24/linux-changing-uids-and-gids-for-user/comment-page-1/#comment-64907</link>
		<dc:creator>Stuart Colville</dc:creator>
		<pubDate>Thu, 05 Feb 2009 10:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/?p=397#comment-64907</guid>
		<description>@Jared: Very good point well made. I&#039;ve updated the post to reflect the need to use -h.</description>
		<content:encoded><![CDATA[<p>@Jared: Very good point well made. I&#8217;ve updated the post to reflect the need to use -h.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://muffinresearch.co.uk/archives/2008/09/24/linux-changing-uids-and-gids-for-user/comment-page-1/#comment-64906</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Thu, 05 Feb 2009 02:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://muffinresearch.co.uk/?p=397#comment-64906</guid>
		<description>But, note that chown and chgrp follow symbolic links, altering the file pointed to rather than the link itself, unless you used the -h switch.  If a user creates a link to a system file, they get ownership of it when you run your commands.  You may not have known if this had happened unless you also used the -v switch to report all operations or ran find again after making the changes. :(</description>
		<content:encoded><![CDATA[<p>But, note that chown and chgrp follow symbolic links, altering the file pointed to rather than the link itself, unless you used the -h switch.  If a user creates a link to a system file, they get ownership of it when you run your commands.  You may not have known if this had happened unless you also used the -v switch to report all operations or ran find again after making the changes. <img src='http://muffinresearch.co.uk/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

