From nobody@FreeBSD.org  Fri Mar 14 21:11:57 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AA31B106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Mar 2008 21:11:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9BB7C8FC24
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Mar 2008 21:11:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2EL8aNT056411
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Mar 2008 21:08:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2EL8ajM056410;
	Fri, 14 Mar 2008 21:08:36 GMT
	(envelope-from nobody)
Message-Id: <200803142108.m2EL8ajM056410@www.freebsd.org>
Date: Fri, 14 Mar 2008 21:08:36 GMT
From: Chris St Denis <chris@smartt.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: man page for su contains errornous example. 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121713
>Category:       docs
>Synopsis:       man page for su contains errornous example.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    danger
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 14 21:20:01 UTC 2008
>Closed-Date:    Sat Jul 05 11:01:58 UTC 2008
>Last-Modified:  Sat Jul  5 11:10:01 UTC 2008
>Originator:     Chris St Denis
>Release:        7.0-RELEASE
>Organization:
Smarttnet
>Environment:
FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Mon Feb 25 11:51:25 PST 2008 i386

>Description:
the man page for the "su" command contains the examples

     su man -c catman
            Runs the command catman as user man.  You will be asked for man's
            password unless your real UID is 0.
     su man -c 'catman /usr/share/man /usr/local/man'
            Same as above, but the target command consists of more than a sin-
            gle word and hence is quoted for use with the -c option being
            passed to the shell.  (Most shells expect the argument to -c to be
            a single word).

These examples do not work because man has the nologin shell, producing the results

mail# su man -c catman
This account is currently not available.

>How-To-Repeat:

>Fix:
These examples should be changed or removed. Since there doesn't appear to be any BSD equivalent of the linux --shell parameter for su another user & command will have to be chosen. 

>Release-Note:
>Audit-Trail:

From: Daniel Gerzo <danger@FreeBSD.org>
To: bug-followup@FreeBSD.org, chris@smartt.com
Cc: doc@FreeBSD.org
Subject: Re: docs/121713: man page for su contains errornous example.
Date: Sat, 28 Jun 2008 00:31:24 +0200

 Hello,
 
   To fix this problem, we might want to add -m option to the example
   commands. Does this work for you guys? Any other ideas?
 
 -- 
 Best regards,
  Daniel                          mailto:danger@FreeBSD.org
 

From: Tom Rhodes <trhodes@FreeBSD.org>
To: Daniel Gerzo <danger@FreeBSD.org>
Cc: bug-followup@FreeBSD.org, chris@smartt.com, doc@FreeBSD.org
Subject: Re: docs/121713: man page for su contains errornous example.
Date: Mon, 30 Jun 2008 13:44:27 -0400

 On Sat, 28 Jun 2008 00:31:24 +0200
 Daniel Gerzo <danger@freebsd.org> wrote:
 
 > Hello,
 > 
 >   To fix this problem, we might want to add -m option to the example
 >   commands. Does this work for you guys? Any other ideas?
 
 Works for me.
 
 -- 
 Tom Rhodes
Responsible-Changed-From-To: freebsd-doc->danger 
Responsible-Changed-By: danger 
Responsible-Changed-When: Tue Jul 1 20:56:39 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121713 
State-Changed-From-To: open->patched 
State-Changed-By: danger 
State-Changed-When: Tue Jul 1 20:56:55 UTC 2008 
State-Changed-Why:  
I have added the -m option to the example commands 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121713 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/121713: commit references a PR
Date: Tue,  1 Jul 2008 20:56:45 +0000 (UTC)

 danger      2008-07-01 20:56:23 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.bin/su           su.1 
   Log:
   SVN rev 180155 on 2008-07-01 20:56:23Z by danger
   
   - add the -m option to the example commands because they would fail w/o it
     as the ``man'' user does not have a valid shell by default.
   
   PR:             docs/121713
   Approved by:    trhodes
   MFC after:      3 days
   
   Revision  Changes    Path
   1.41      +9 -4      src/usr.bin/su/su.1
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/121713: commit references a PR
Date: Sat,  5 Jul 2008 10:48:18 +0000 (UTC)

 danger      2008-07-05 10:47:59 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     usr.bin/su           su.1 
   Log:
   SVN rev 180288 on 2008-07-05 10:47:59Z by danger
   
   MFC r180155:
   
   - add the -m option to the example commands because they would fail w/o it
     as the ``man'' user does not have a valid shell by default.
   
   PR:             docs/121713
   
   Revision  Changes    Path
   1.40.2.1  +9 -4      src/usr.bin/su/su.1
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: danger 
State-Changed-When: Sat Jul 5 11:01:26 UTC 2008 
State-Changed-Why:  
Close this one as I have synced su.1 in RELENG_[76] with -HEAD 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121713 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/121713: commit references a PR
Date: Sat,  5 Jul 2008 11:01:35 +0000 (UTC)

 danger      2008-07-05 11:01:11 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     usr.bin/su           su.1 
   Log:
   SVN rev 180289 on 2008-07-05 11:01:11Z by danger
   
   MFC r162792 [1], r171562 [2], r180155 [3]:
   
   - markup fixes [1]
   - Stop mentioning /usr/X11R6 [2]
   - add the -m option to the example commands because they would fail w/o it
     as the ``man'' user does not have a valid shell by default. [3]
   
   PR:             docs/121713 [3]
   
   Revision  Changes    Path
   1.36.2.3  +12 -7     src/usr.bin/su/su.1
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
