1RUNUSER(1) User Commands RUNUSER(1)
2
3
4
6 runuser - run a shell with substitute user and group IDs, similar to
7 su, but will not run PAM hooks
8
10 runuser [OPTION]... [-] [USER [ARG]...]
11
13 Change the effective user id and group id to that of USER. No PAM
14 hooks are run, and there will be no password prompt. This command is
15 useful when run as the root user. If run as a non-root user without
16 privilege to set user ID, the command will fail.
17
18 -, -l, --login
19 make the shell a login shell, uses runuser-l PAM file instead of
20 default one.
21
22 -c, --commmand=COMMAND
23 pass a single COMMAND to the shell with -c
24
25 -f, --fast
26 pass -f to the shell (for csh or tcsh)
27
28 -g, --group=GROUP
29 specify the primary group
30
31 -G, --supp-group=GROUP
32 specify a supplemental group
33
34 -m, --preserve-environment
35 do not reset environment variables
36
37 -p same as -m
38
39 -s, --shell=SHELL
40 run SHELL if /etc/shells allows it
41
42 --help display this help and exit
43
44 --version
45 output version information and exit
46
47 A mere - implies -l. If USER not given, assume root.
48
50 Written by David MacKenzie, Dan Walsh.
51
53 Report bugs to <bug-coreutils@gnu.org>.
54
56 Copyright © 2004 Free Software Foundation, Inc.
57 This is free software; see the source for copying conditions. There is
58 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
59 PURPOSE.
60
62 Since this command is trimmed down version of su use you can use the su
63 manual. The full documentation for su is maintained as a Texinfo man‐
64 ual. If the info and su programs are properly installed at your site,
65 the command
66
67 info coreutils su
68
69 should give you access to the complete manual.
70
71
72
73runuser (coreutils) 5.2.1 September 2004 RUNUSER(1)