Deleted Added
full compact
su.1 (216370) su.1 (222758)
1.\" Copyright (c) 1988, 1990, 1993, 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 12 unchanged lines hidden (view full) ---

21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" @(#)su.1 8.2 (Berkeley) 4/18/94
1.\" Copyright (c) 1988, 1990, 1993, 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 12 unchanged lines hidden (view full) ---

21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" @(#)su.1 8.2 (Berkeley) 4/18/94
29.\" $FreeBSD: head/usr.bin/su/su.1 216370 2010-12-11 08:32:16Z joel $
29.\" $FreeBSD: head/usr.bin/su/su.1 222758 2011-06-06 15:17:55Z gjb $
30.\"
31.Dd July 1, 2008
32.Dt SU 1
33.Os
34.Sh NAME
35.Nm su
36.Nd substitute user identity
37.Sh SYNOPSIS

--- 150 unchanged lines hidden (view full) ---

188.Bl -tag -width ".Pa /etc/pam.d/su" -compact
189.It Pa /etc/pam.d/su
190PAM configuration for
191.Nm .
192.El
193.Sh EXAMPLES
194.Bl -tag -width 5n -compact
195.It Li "su -m man -c catman"
30.\"
31.Dd July 1, 2008
32.Dt SU 1
33.Os
34.Sh NAME
35.Nm su
36.Nd substitute user identity
37.Sh SYNOPSIS

--- 150 unchanged lines hidden (view full) ---

188.Bl -tag -width ".Pa /etc/pam.d/su" -compact
189.It Pa /etc/pam.d/su
190PAM configuration for
191.Nm .
192.El
193.Sh EXAMPLES
194.Bl -tag -width 5n -compact
195.It Li "su -m man -c catman"
196Runs the command
197.Li catman
198as user
199.Li man .
196Starts a shell as user
197.Li man ,
198and runs the command
199.Li catman .
200You will be asked for man's password unless your real UID is 0.
201Note that the
202.Fl m
203option is required since user
204.Dq man
205does not have a valid shell by default.
206.It Li "su -m man -c 'catman /usr/share/man /usr/local/man'"
207Same as above, but the target command consists of more than a

--- 35 unchanged lines hidden ---
200You will be asked for man's password unless your real UID is 0.
201Note that the
202.Fl m
203option is required since user
204.Dq man
205does not have a valid shell by default.
206.It Li "su -m man -c 'catman /usr/share/man /usr/local/man'"
207Same as above, but the target command consists of more than a

--- 35 unchanged lines hidden ---