<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=User_Administration</id>
	<title>User Administration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slackwiki.com/index.php?action=history&amp;feed=atom&amp;title=User_Administration"/>
	<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=User_Administration&amp;action=history"/>
	<updated>2026-04-08T01:02:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://www.slackwiki.com/index.php?title=User_Administration&amp;diff=203&amp;oldid=prev</id>
		<title>Erik: Copy from old</title>
		<link rel="alternate" type="text/html" href="https://www.slackwiki.com/index.php?title=User_Administration&amp;diff=203&amp;oldid=prev"/>
		<updated>2009-06-06T23:36:15Z</updated>

		<summary type="html">&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;</summary>
		<author><name>Erik</name></author>
	</entry>
</feed>