version 1.16, 2002/10/16 01:06:32 |
version 1.17, 2002/11/14 02:57:28 |
|
|
to remind one of its awesome power. |
to remind one of its awesome power. |
.Sh EXAMPLES |
.Sh EXAMPLES |
.Bl -tag -width 5n -compact |
.Bl -tag -width 5n -compact |
.It Li "su bin -c makewhatis" |
.It Li "$ su bin -c makewhatis" |
Runs the command |
Runs the command |
.Li makewhatis |
.Li makewhatis |
as user |
as user |
.Li bin . |
.Li bin . |
You will be asked for bin's password unless your real UID is 0. |
You will be asked for bin's password unless your real UID is 0. |
.Pp |
.Pp |
.It Li "su bin -c 'makewhatis /usr/local/man'" |
.It Li "$ su bin -c 'makewhatis /usr/local/man'" |
Same as above, but the target command consists of more than a |
Same as above, but the target command consists of more than a |
single word. |
single word. |
.Pp |
.Pp |
.It Li "su -l foo" |
.It Li "$ su -l foo" |
Pretend a login for user |
Pretend a login for user |
.Li foo . |
.Li foo . |
.Pp |
.Pp |
.It Li "su -a skey -l foo" |
.It Li "$ su -a skey -l foo" |
Same as above, but use S/Key for authentication. |
Same as above, but use S/Key for authentication. |
.El |
.El |
.Sh ENVIRONMENT |
.Sh ENVIRONMENT |