docs/174251: [PATCH] Propose to add in example for adding users to wheel group

Edward edward at rdtan.net
Fri Dec 7 04:30:00 UTC 2012


>Number:         174251
>Category:       docs
>Synopsis:       [PATCH] Propose to add in example for adding users to wheel group
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 07 04:30:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Edward
>Release:        FreeBSD 8.3-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD docs 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
	This proposed patch refers to FAQ book on Chapter 10.4 (Why do I get the error, "you are not in the correct group to su rootâ" when I try to su to root?). Patch attached includes an example on how to add user to "wheel" group using "pw" utility. 
>How-To-Repeat:
>Fix:

--- diff.txt begins here ---
--- book.xml.original	2012-11-24 00:40:21.000000000 +0800
+++ book.xml	2012-12-07 12:09:42.000000000 +0800
@@ -5488,7 +5488,11 @@
 
 	  <para>To allow someone to <command>su</command> to
 	    <username>root</username>, simply put them in the
-	    <groupname>wheel</groupname> group.</para>
+	    <groupname>wheel</groupname> group. Use the &man.pw.8 utility
+		for this purpose.
+	  <screen>&prompt.root; <userinput>pw groupmod wheel -m <replaceable>joe</replaceable></userinput></screen>
+		The above example will add user <username>joe</username> to 
+		group <groupname>wheel</groupname>.</para>
 	</answer>
       </qandaentry>
 
--- diff.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-doc mailing list