<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>User Administration - Revision history</title>
		<link>https://www.slackwiki.com/index.php?title=User_Administration&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.40.0</generator>
		<lastBuildDate>Wed, 08 Apr 2026 01:02:06 GMT</lastBuildDate>
		<item>
			<title>Erik: Copy from old</title>
			<link>https://www.slackwiki.com/index.php?title=User_Administration&amp;diff=203&amp;oldid=prev</link>
			<guid isPermaLink="false">https://www.slackwiki.com/index.php?title=User_Administration&amp;diff=203&amp;oldid=prev</guid>
			<description>&lt;p&gt;Copy from old&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Tips]]&lt;br /&gt;
==Adding Users==&lt;br /&gt;
To ADD users:  &amp;lt;code&amp;gt;adduser &amp;lt;i&amp;gt;user&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Deleting Users==&lt;br /&gt;
To REMOVE users: &amp;lt;code&amp;gt;userdel &amp;lt;i&amp;gt;baduser&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will remove the entry matching the username &amp;lt;i&amp;gt;baduser&amp;lt;/i&amp;gt; from the &amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt; file and if you're using the Shadow password format (which you should be), also from the &amp;lt;code&amp;gt;/etc/shadow&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE: &amp;lt;/b&amp;gt;The &amp;lt;code&amp;gt;/etc/group&amp;lt;/code&amp;gt; file is not modified to avoid removing a group that other users may also belong to. This isn't much of a big deal because you can edit the group file and remove the entry manually.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Should you wish to remove the user's home directory as well&amp;lt;/b&amp;gt;, add the &amp;lt;code&amp;gt;-r&amp;lt;/code&amp;gt; option to the &amp;lt;code&amp;gt;userdel&amp;lt;/code&amp;gt; command.  EXAMPLE: &amp;lt;code&amp;gt;userdel -r &amp;lt;i&amp;gt;baduser&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Changing User's Passwords==&lt;br /&gt;
To change users password: &amp;lt;code&amp;gt;passwd &amp;lt;i&amp;gt;user&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Adding User to Group==&lt;br /&gt;
If you want to add your user to other groups in the &amp;lt;code&amp;gt;/etc/group&amp;lt;/code&amp;gt; file,&lt;br /&gt;
you can simply use the &amp;lt;code&amp;gt;gpasswd&amp;lt;/code&amp;gt; command like this: &amp;lt;code&amp;gt;gpasswd -a user group&amp;lt;/code&amp;gt;&lt;/div&gt;</description>
			<pubDate>Sat, 06 Jun 2009 23:36:15 GMT</pubDate>
			<dc:creator>Erik</dc:creator>
			<comments>https://www.slackwiki.com/Talk:User_Administration</comments>
		</item>
</channel></rss>