RUNUSER(1) RUNUSER(1) runuser - - runuser [] -u [[--] [...]] runuser [] [-] [ [...]] runuser - . -u , runuser su- . runuser su runuser ( ) PAM . runuser ,,--". , setpriv(1). , runuser . , runuser HOME SHELL ( USER LOGNAME ). runuser PAM . runuser PAM (pam_getenvlist()) . --login --preserve-environment PAM-. 2.38 runuser RLIMIT_NICE, RLIMIT_RTPRIO, RLIMIT_FSIZE, RLIMIT_AS RLIMIT_NOFILE. -c, --command= -c. -f, --fast -f , , . -g, --group= . . -G, --supp-group= . . --group . -, -l, --login : o TERM --whitelist-environment o , , , -, o o ,,argv[0]" - -m, -p, --preserve-environment , . , , -. --login . -P, --pty Create a pseudo-terminal for the session. The independent terminal provides better security as the user does not share a terminal with the original session. This can be used to avoid TIOCSTI ioctl terminal injection and other security attacks against terminal file descriptors. The entire session can also be moved to the background (e.g., runuser --pty -u user -- command &). If the pseudo-terminal is enabled, then runuser works as a proxy between the sessions (sync stdin and stdout). . , (., echo "" | runuser --pty -u ), ECHO . -s, --shell= . , : o --shell o --preserve-environment o o /bin/sh (. /etc/shells), --shell . --session-command= -c, . ( .) -T, --no-pty , --pty -P. ,,TIOCSTI/TIOCLINUX ioctl". -u, --user=user Run command with the effective user ID and group ID of the user name user. -w, --whitelist-environment= --login. , , , - . -h, --help . -V, --version Display version and exit. runuser /etc/default/runuser /etc/login.defs . runuser: ENV_PATH () ,," . /usr/local/bin:/bin:/usr/bin. ENV_ROOTPATH (), ENV_SUPATH () . ENV_SUPATH . /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin. ALWAYS_SET_PATH () yes --login --preserve-environment runuser . /bin /sbin /usr; --login (., pam_env(8)). runuser . , runuser 128. runuser: 1 126 127 /etc/pam.d/runuser /etc/pam.d/runuser-l --login /etc/default/runuser ,,runuser"- /etc/login.defs ,,logindef" runuser su ,,coreutils"-, , runuser . setpriv(1), su(1), login.defs(5), shells(5), pam(8) For bug reports, use the issue tracker . runuser ,,util-linux" . util-linux 2.41 2025-03-29 RUNUSER(1)