summaryrefslogtreecommitdiffstats
path: root/chapter_09.xml
diff options
context:
space:
mode:
authorAlan Hicks <alan@lizella.net>2010-07-03 16:08:02 -0400
committerAlan Hicks <alan@lizella.net>2010-07-03 16:08:02 -0400
commit5abc12ab568ea40a9ee9ba0985420c36ce31b23d (patch)
treeddad0ffea8c0e34fa00a3e41676ed01e2465ed9b /chapter_09.xml
parent31df9b680bfcebf8e1bbce737356efa10b77c423 (diff)
downloadslackbook-5abc12ab568ea40a9ee9ba0985420c36ce31b23d.tar.xz
Handled a few more TODO entries (and created a couple more).
Diffstat (limited to 'chapter_09.xml')
-rw-r--r--chapter_09.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/chapter_09.xml b/chapter_09.xml
index a2bb4e9..c2866e0 100644
--- a/chapter_09.xml
+++ b/chapter_09.xml
@@ -180,6 +180,29 @@ encrypted password to a value that can't be matched.
</para>
<para>
+The easiest way for modifying a user's information is the
+<application>usermod</application>(8) utility which is capable of
+modifying everything from group membership to home directories. A full
+listing of its features won't be given here, so check the man page.
+<application>usermod</application> is perhaps the best tool to use for
+modifying a user's group members. The <arg>-s</arg> and <arg>-G</arg>
+arguments accomplish this.
+</para>
+
+<screen><prompt>darkstar:~# </prompt><userinput>usermod -a -G wheel alan</userinput>
+<prompt>darkstar:~# </prompt><userinput>usermod -G wheel alan</userinput>
+</screen>
+
+<para>
+It important to note the differences in the two commands above. The
+first command adds the user "alan" to the "wheel" group without
+modifying any other groups "alan" belongs to. The second command also
+makes "alan" a member of the "wheel" group, but also removes the user's
+membership from any other groups, something you will very rarely want
+to do!
+</para>
+
+<para>
Another useful tool is <application>chsh</application>(1) which changes a
user's default shell. Like <application>passwd</application>, normal
users can only change their own shell, but the root user can change