1SU(1) User Commands SU(1)
2
3
4
6 su - run a shell with substitute user and group IDs
7
9 su [OPTION]... [-] [USER [ARG]...]
10
12 Change the effective user id and group id to that of USER.
13
14 -, -l, --login
15 make the shell a login shell
16
17 -c, --command=COMMAND
18 pass a single COMMAND to the shell with -c
19
20 --session-command=COMMAND
21 pass a single COMMAND to the shell with -c and do not create a
22 new session
23
24 -f, --fast
25 pass -f to the shell (for csh or tcsh)
26
27 -m, --preserve-environment
28 do not reset environment variables
29
30 -p same as -m
31
32 -s, --shell=SHELL
33 run SHELL if /etc/shells allows it
34
35 --help display this help and exit
36
37 --version
38 output version information and exit
39
40 A mere - implies -l. If USER not given, assume root.
41
43 Written by David MacKenzie.
44
46 Report bugs to <bug-coreutils@gnu.org>.
47
49 Copyright © 2007 Free Software Foundation, Inc.
50 This is free software. You may redistribute copies of it under the
51 terms of the GNU General Public License
52 <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the
53 extent permitted by law.
54
56 The full documentation for su is maintained as a Texinfo manual. If
57 the info and su programs are properly installed at your site, the com‐
58 mand
59
60 info su
61
62 should give you access to the complete manual.
63
64
65
66GNU coreutils 6.9 March 2008 SU(1)