<?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>OpenPeta &#187; User and Group Management</title>
	<atom:link href="http://openpeta.com/index.php/category/user-and-group-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://openpeta.com</link>
	<description>Open Mind ....  Open Source ...</description>
	<lastBuildDate>Wed, 21 Jul 2010 03:20:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to change user name in Linux</title>
		<link>http://openpeta.com/index.php/2008/03/how-to-change-user-name-in-linux/</link>
		<comments>http://openpeta.com/index.php/2008/03/how-to-change-user-name-in-linux/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 05:27:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[User and Group Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2008/03/10/how-to-change-user-name-in-linux/</guid>
		<description><![CDATA[Sometime you may want to change the user login name into different one,In that case you can use two options (Login or switch to root mode &#8211; su) Method 1: ( Using usermod command ) usermod -l newname oldname Example #usermod -l anthoniraj antony Here the user antony has been changed to anthoniraj Method 2 [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime you may want to change the user login name into different one,<br />In that case you can use two options</p>
<p>(Login or switch to root mode &#8211; su)</p>
<p>Method 1: ( Using usermod command )<br />   <span style="font-weight: bold;">usermod -l newname oldname</span></p>
<p>Example<br />    <span style="font-weight: bold;">#usermod -l anthoniraj antony</span></p>
<p>Here the user antony has been changed to anthoniraj</p>
<p>Method 2 : ( Using chfn command )<br />   <span style="font-weight: bold;">chfn -f newname oldname</span></p>
<p>Example<br />    <span style="font-weight: bold;">#chfn -f thiraviam thiravi</span></p>
<p>Here the user thiravi has been changed to thiraviam</p>
<p>Note : The old user name should exists in /etc/passwd file .<br />       These above two commands will only change the user name, not user home directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2008/03/how-to-change-user-name-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Group Management</title>
		<link>http://openpeta.com/index.php/2007/10/group-management/</link>
		<comments>http://openpeta.com/index.php/2007/10/group-management/#comments</comments>
		<pubDate>Thu, 18 Oct 2007 08:40:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[User and Group Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/10/18/group-management/</guid>
		<description><![CDATA[1) The &#8220;groupadd&#8221; command creates a new group account[root@MB327SCS068 ~]# groupadd netadmingroupadd: group netadmin exists[root@MB327SCS068 ~]# groupadd network 2) Adding users into network group[root@MB327SCS068 ~]# useradd antony -g networkuseradd: user antony exists[root@MB327SCS068 ~]# useradd antonyraj -g network[root@MB327SCS068 ~]# useradd ligory -g network[root@MB327SCS068 ~]# useradd basha -g network 3) Setting and changing group password (gpasswd)[root@MB327SCS068 ~]# [...]]]></description>
			<content:encoded><![CDATA[<p>1) The  &#8220;groupadd&#8221;  command  creates  a  new group account<br />[root@MB327SCS068 ~]# groupadd netadmin<br />groupadd: group netadmin exists<br />[root@MB327SCS068 ~]# groupadd network</p>
<p>2) Adding users into network group<br />[root@MB327SCS068 ~]# useradd antony -g network<br />useradd: user antony exists<br />[root@MB327SCS068 ~]# useradd antonyraj -g network<br />[root@MB327SCS068 ~]# useradd ligory -g network<br />[root@MB327SCS068 ~]# useradd basha -g network</p>
<p>3) Setting and changing group password (gpasswd)<br />[root@MB327SCS068 ~]# gpasswd network<br />Changing the password for group network<br />New Password:<br />Re-enter new password:</p>
<p>4) Using  &#8220;groupmod&#8221; command , we can change the group id (option -g)  and name (-n)<br />[root@MB327SCS068 ~]# groupmod -n admin network</p>
<p>4) Deleting Group &#8220;groupdel&#8221; &#8211; You may not remove the primary group of any existing user.  You must remove the user before you remove the group.<br />[root@MB327SCS068 ~]# groupdel admin<br />groupdel: cannot remove user&#8217;s primary group.<br />[root@MB327SCS068 ~]# userdel antonyraj<br />[root@MB327SCS068 ~]# userdel<br />usage: userdel [-r] name<br />[root@MB327SCS068 ~]# userdel ligory<br />[root@MB327SCS068 ~]# userdel basha<br />[root@MB327SCS068 ~]# groupdel admin</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/10/group-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Commands for Managing Users</title>
		<link>http://openpeta.com/index.php/2007/09/commands-for-managing-users/</link>
		<comments>http://openpeta.com/index.php/2007/09/commands-for-managing-users/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 03:58:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[User and Group Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/09/20/commands-for-managing-users/</guid>
		<description><![CDATA[The following commands are used to manage the users on your Linux OS1. useradd &#8211; Create a new user or update default new user informationExample :[root@myserver ~]# useradd admin 2. passwd &#8211; Used to change the user passwdExample :[root@myserver ~]# passwd adminChanging password for user admin.New UNIX password:Retype new UNIX password:passwd: all authentication tokens updated [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:85%;"><span style="font-family:arial;"><interface-config><up report=""><span style="font-size:85%;"><span style="font-family:arial;"><span style="font-size:100%;"><span style="font-family:verdana;"></span><span style="font-family:verdana;">The following commands are used to manage the users on your Linux OS</span><br /><span style="font-family:verdana;">1. useradd &#8211; Create a new user or update default new user information</span><br /><span style="font-family:verdana;">Example :</span><br /><span style="font-family:verdana;">[root@myserver ~]# useradd admin</span></p>
<p><span style="font-family:verdana;">2. passwd &#8211; Used to change the user passwd</span><br /><span style="font-family:verdana;">Example :</span><br /><span style="font-family:verdana;">[root@myserver ~]# passwd admin</span><br /><span style="font-family:verdana;">Changing password for user admin.</span><br /><span style="font-family:verdana;">New UNIX password:</span><br /><span style="font-family:verdana;">Retype new UNIX password:</span><br /><span style="font-family:verdana;">passwd: all authentication tokens updated successfully.</span><br /><span style="font-family:verdana;">(For full details &#8211; Refer User Creation Article)</span></p>
<p><span style="font-family:verdana;">3. userpasswd &#8211; A graphical tool to allow users to change their passwords.</span><br /><span style="font-family:verdana;">Example :</span><br /><span style="font-family:verdana;">[root@myserver ~]# userpasswd (display one GUI window for changing password)</span></p>
<p><span style="font-family:verdana;">4. userdel &#8211; Delete a user account and related files</span><br /><span style="font-family:verdana;">Example :</span><br /><span style="font-family:verdana;">[root@myserver ~]# userdel -r admin</span><br /><span style="font-family:verdana;">[root@myserver ~]#</span><br /><span style="font-family:verdana;">The -r option</span><br /><span style="font-family:verdana;">All user details will be removed from /etc/passwd , /etc/group and /etc/shadow .</span></p>
<p><span style="font-family:verdana;">5. userinfo &#8211; A graphical equivilient to chfn.</span><br /><span style="font-family:verdana;">Example :</span><br /><span style="font-family:verdana;">[root@myserver ~]# userinfo</span></p>
<p><span style="font-family:verdana;">6. usermod &#8211; Modify a user account</span><br /><span style="font-family:verdana;">Example :</span><br /><span style="font-family:verdana;">i) Changing User home directory</span><br /><span style="font-family:verdana;">usermod -d /usr/antony</span><br /><span style="font-family:verdana;">ii) Changing user shell</span><br /><span style="font-family:verdana;">usermod -s /bin/csh</span><br /><span style="font-family:verdana;">iii) Setting user expiry date (Date format : YYYY/MM/DD)</span><br /><span style="font-family:verdana;">usermod -e 2007/09/30</span></p>
<p><span style="font-family:verdana;">7. usernetctl &#8211; allow a user to manipulate a network interface if permitted</span><br /><span style="font-family:verdana;">Example :</span><br /><span style="font-family:verdana;">[root@myserver ~]# usernetctl</span><br /><span style="font-family:verdana;">usage: usernetctl</span><br /><span style="font-family:verdana;">[root@myserver ~]# usernetctl eth0 report</span><br /><span style="font-family:verdana;">[root@myserver ~]# usernetctl eth0 up</span><br /><span style="font-family:verdana;">[root@myserver ~]#</span></p>
<p><span style="font-family:verdana;">8. users &#8211; print the user names of users currently logged in to the current host</span><br /><span style="font-family:verdana;">Example :</span><br /><span style="font-family:verdana;">[root@myserver ~]# users</span><br /><span style="font-family:verdana;">root raj exam1</span><br /><span style="font-family:verdana;">[root@myserver ~]#</span></span><br /></span></span></up></interface-config></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/09/commands-for-managing-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing User Information</title>
		<link>http://openpeta.com/index.php/2007/09/changing-user-information/</link>
		<comments>http://openpeta.com/index.php/2007/09/changing-user-information/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 07:24:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[User and Group Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/09/11/changing-user-information/</guid>
		<description><![CDATA[Using &#8216;chfn&#8217; command (In Redhat EL4) , we can enter the user information, the same thing you can do with GUI mode using &#8216;userinfo -a &#8216; command [root@MB327SCS068 ~]# chfn rootChanging finger information for root.Name [root]: rootOffice [vit]: vitOffice Phone []: 1234567Home Phone []: 1234567 Finger information changed. Using finger command you can view the [...]]]></description>
			<content:encoded><![CDATA[<p>Using &#8216;chfn&#8217; command (In Redhat EL4) , we can enter the user information, the same thing you can do with GUI mode using &#8216;userinfo -a &#8216; command</p>
<p>[root@MB327SCS068 ~]# chfn root<br />Changing finger information for root.<br />Name [root]: root<br />Office [vit]: vit<br />Office Phone []: 1234567<br />Home Phone []: 1234567</p>
<p>Finger information changed.</p>
<p>Using finger command you can view the user information</p>
<p>[root@MB327SCS068 ~]# finger root<br />Login: root                             Name: root<br />Directory: /root                        Shell: /bin/bash<br />Office: vit, 123-4567                   Home Phone: 123-4567<br />On since Tue Sep 11 10:27 (IST) on :0 (messages off)<br />On since Tue Sep 11 12:22 (IST) on pts/1 from 192.168.0.106<br />New mail received Mon Sep 10 14:13 2007 (IST)<br />     Unread since Thu Sep  6 11:20 2007 (IST)<br />No Plan.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/09/changing-user-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Locking and Unlocking User Password</title>
		<link>http://openpeta.com/index.php/2007/08/locking-and-unlocking-user-password/</link>
		<comments>http://openpeta.com/index.php/2007/08/locking-and-unlocking-user-password/#comments</comments>
		<pubDate>Sat, 25 Aug 2007 05:23:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[User and Group Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/08/25/locking-and-unlocking-user-password/</guid>
		<description><![CDATA[Some times the administrator can lock or unlock the user passwordmeans , the user cannot change the password if administrator set the lock option.the syntax is passwd -l / -u username l &#8211; lock the password (user cannot change their password)u &#8211; unlock the password (user can change their password) Eg : [root@MB327SCS068 ~]# passwd [...]]]></description>
			<content:encoded><![CDATA[<p>Some times the administrator can lock or unlock the  user password<br />means , the user cannot change the password if administrator set the lock option.<br />the syntax is</p>
<p> passwd -l / -u  username</p>
<p>l &#8211; lock the password (user cannot change their password)<br />u &#8211; unlock the password (user can change their password)</p>
<p>Eg :</p>
<p>[root@MB327SCS068 ~]# passwd -l antony<br />Locking password for user antony.<br />passwd: Success</p>
<p>[root@MB327SCS068 ~]# passwd -u antony<br />Unlocking password for user antony.<br />passwd: Success.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/08/locking-and-unlocking-user-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding All Users and Groups In Linux Machine</title>
		<link>http://openpeta.com/index.php/2007/08/finding-all-users-and-groups-in-linux-machine/</link>
		<comments>http://openpeta.com/index.php/2007/08/finding-all-users-and-groups-in-linux-machine/#comments</comments>
		<pubDate>Sat, 25 Aug 2007 05:02:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[User and Group Management]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/08/25/finding-all-users-and-groups-in-linux-machine/</guid>
		<description><![CDATA[We have lot of commands for user management like useradd ,passwd but there is no separate command for finding all users in our Linux machine , But one powerfulcommand is &#8216;cut&#8217; with some options we can find all users on our system 1) Displaying All users (need root mode) cut -d : -f 1 /etc/passwd [...]]]></description>
			<content:encoded><![CDATA[<p>We have lot of commands for user management like useradd ,passwd but there is no separate command for finding all users in our Linux machine , But one powerful<br />command is &#8216;cut&#8217; with some options we can find all users on our system</p>
<p>1) Displaying All users (need root mode)</p>
<p>cut -d : -f 1 /etc/passwd</p>
<p>2) Displaying all groups</p>
<p>cut -d : -f 1 /etc/groups</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/08/finding-all-users-and-groups-in-linux-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
