diff options
author | 2005-04-18 21:23:24 +0000 | |
---|---|---|
committer | 2005-04-18 21:23:24 +0000 | |
commit | 0cb2ff63c3cc2254eb6d58acbf94a7e75148bc8c (patch) | |
tree | 77a266c415710e5a53dff1ec6e1a89e97e527730 | |
parent | add an example using both -c login_class and -c shell_arg; (diff) | |
download | wireguard-openbsd-0cb2ff63c3cc2254eb6d58acbf94a7e75148bc8c.tar.xz wireguard-openbsd-0cb2ff63c3cc2254eb6d58acbf94a7e75148bc8c.zip |
use a standard EXAMPLES format;
also there's no need for a list in here;
-rw-r--r-- | usr.bin/su/su.1 | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/usr.bin/su/su.1 b/usr.bin/su/su.1 index af5271e477e..605ec28b3db 100644 --- a/usr.bin/su/su.1 +++ b/usr.bin/su/su.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: su.1,v 1.22 2005/04/18 21:13:36 jmc Exp $ +.\" $OpenBSD: su.1,v 1.23 2005/04/18 21:23:24 jmc Exp $ .\" .\" Copyright (c) 1988, 1990 The Regents of the University of California. .\" All rights reserved. @@ -231,19 +231,19 @@ Same as .Ev LOGNAME . .El .Sh EXAMPLES -.Bl -tag -width 5n -compact -.It Li "$ su bin -c makewhatis" -Runs the command -.Li makewhatis +Run the command +.Dq makewhatis as user -.Li bin . +.Dq bin . You will be asked for bin's password unless your real UID is 0. .Pp -.It Li "$ su bin -c 'makewhatis /usr/local/man'" +.Dl $ su bin -c makewhatis +.Pp Same as above, but the target command consists of more than a -single word. +single word: +.Pp +.Dl $ su bin -c 'makewhatis /usr/local/man' .Pp -.It Li "$ su -c staff bin -c 'makewhatis /usr/local/man'" Same as above, but the target command is run with the resource limits of the login class .Dq staff . @@ -253,13 +253,16 @@ option applies to .Nm while the second is an argument to the shell. .Pp -.It Li "$ su -l foo" +.Dl $ su -c staff bin -c 'makewhatis /usr/local/man' +.Pp Pretend a login for user -.Li foo . +.Dq foo : .Pp -.It Li "$ su -a skey -l foo" -Same as above, but use S/Key for authentication. -.El +.Dl $ su -l foo +.Pp +Same as above, but use S/Key for authentication: +.Pp +.Dl $ su -a skey -l foo .Sh SEE ALSO .Xr csh 1 , .Xr kinit 1 , |