source: trunk/minix/man/man1/su.1@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.4 KB
Line 
1.TH SU 1
2.SH NAME
3su \- temporary become superuser or another user
4.SH SYNOPSIS
5.B su
6.RB [ \- [ e ]]
7.RI [ user
8.RI [ shell-arguments " ...]]"
9.SH DESCRIPTION
10.de SP
11.if t .sp 0.4
12.if n .sp
13..
14.B Su
15can be used to temporarily run a shell under the identity of the superuser
16or another user. Unless the caller is a member of the operator group, one
17is prompted for the password of the user-to-be. Calls that need a password
18are logged, whether they succeed or not. The default user is
19.BR root .
20Further arguments are handed to the shell. By default the shell started is
21the shell of the invoker, and the environment is passed on as is.
22.PP
23The activities of
24.B su
25are logged through
26.BR syslog (3)
27under Minix-vmd.
28.SH OPTIONS
29.TP
30.B \-
31Constructs a new environment consisting of the
32.BR PATH ,
33.BR USER ,
34.BR LOGNAME ,
35.BR HOME ,
36.BR SHELL ,
37.BR TERM ,
38.BR TERMCAP ,
39and
40.BR TZ
41variables. The environment is the same as on a normal login, except that
42.BR TERM ,
43.B TERMCAP
44and
45.B TZ
46are copied from the current environment if set. The current working
47directory is changed to the user home directory, the shell of the user-to-be
48is run, and it is started as a login shell, with the first character a minus
49sign.
50.TP
51.B \-e
52Like above, but the shell is started normally, not as a login shell.
53.SH "SEE ALSO"
54.BR sh (1),
55.BR login (1),
56.BR syslog (3).
57.SH AUTHOR
58Kees J. Bot <kjb@cs.vu.nl>
Note: See TracBrowser for help on using the repository browser.