commit 3300869ff11c2f01b510b95142f5a43c1bc56ddf
Author: Stephen Wadeley <swadeley(a)redhat.com>
Date: Wed Jan 6 10:30:03 2016 +0100
usermod -G needs -a to add
otherwise you would replace any existing group settings.
Thanks to Robert Day for pointing this out.
en-US/Gaining_Privileges.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/en-US/Gaining_Privileges.xml b/en-US/Gaining_Privileges.xml
index 935b0cb..c61d23f 100644
--- a/en-US/Gaining_Privileges.xml
+++ b/en-US/Gaining_Privileges.xml
@@ -24,7 +24,7 @@
<para>
One of the simplest ways to do this is to add users to the special administrative group called <firstterm>wheel</firstterm>. To do this, type the following command as <systemitem class="username">root</systemitem>:
</para>
- <synopsis><command>usermod</command> <option>-G wheel</option> <replaceable>username</replaceable></synopsis>
+ <screen>~]# <command>usermod -a -G wheel</command> <replaceable>username</replaceable></screen>
<para>
In the previous command, replace <replaceable>username</replaceable> with the user name you want to add to the <systemitem class="groupname">wheel</systemitem> group.
</para>