<?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>KrazyWorks&#187; Users and Groups</title>
	<atom:link href="http://www.krazyworks.com/category/sysadmin/users-and-groups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.krazyworks.com</link>
	<description>Networking, Systems Design, and Disaster Recovery</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:47:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Count users with &#8220;last&#8221;</title>
		<link>http://www.krazyworks.com/count-users-with-last/</link>
		<comments>http://www.krazyworks.com/count-users-with-last/#comments</comments>
		<pubDate>Sun, 20 Nov 2005 04:15:00 +0000</pubDate>
		<dc:creator>Igor</dc:creator>
				<category><![CDATA[Commands & Shells]]></category>
		<category><![CDATA[Users and Groups]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[printf]]></category>
		<category><![CDATA[uniq]]></category>

		<guid isPermaLink="false">http://www.comradegeneral.com/SysAdmin/?p=19</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.krazyworks.com/category/sysadmin/commands-and-shells/" title="Commands &amp; Shells">Commands &amp; Shells</a><a href="http://www.krazyworks.com/category/sysadmin/users-and-groups/" title="Users and Groups">Users and Groups</a></p>Here is a quick example showing how to count users logged in on a particular date using the "last" command on Linux.]]></description>
		<wfw:commentRss>http://www.krazyworks.com/count-users-with-last/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move USER to new primary group</title>
		<link>http://www.krazyworks.com/move-user-to-new-primary-group/</link>
		<comments>http://www.krazyworks.com/move-user-to-new-primary-group/#comments</comments>
		<pubDate>Sun, 20 Nov 2005 03:41:45 +0000</pubDate>
		<dc:creator>Igor</dc:creator>
				<category><![CDATA[Users and Groups]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[mkdir]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.comradegeneral.com/SysAdmin/?p=15</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.krazyworks.com/category/sysadmin/users-and-groups/" title="Users and Groups">Users and Groups</a></p>1. in old user&#8217;s home dir.

oldgroup=&#60;oldgroup&#62;
newgroup=&#60;newgroup&#62;
username=&#60;username&#62;
tar cvf - `find . -print` &#62; backup.tar
mkdir /home/users/${newgroup}/${username}
mv backup.tar /home/users/${newgroup}/${username}/
cd /home/users/${newgroup}/${username}/
tar -xvf backup.tar
find . -group ${oldgroup} -exec chgrp ${newgroup}&#123;&#125; \;
find . -type l -group ${oldgroup} -exec chgrp -h ${newgroup}&#123;&#125; ...]]></description>
		<wfw:commentRss>http://www.krazyworks.com/move-user-to-new-primary-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

