From d12810d42303e001a174493abf8b03fdda294d38 Mon Sep 17 00:00:00 2001 From: Christoph Anton Mitterer Date: Mon, 25 Nov 2024 02:42:27 +0100 Subject: [PATCH] man pages: document `--user` option for `runuser` Signed-off-by: Christoph Anton Mitterer (cherry picked from commit 2a562a5f5f56f6afb87ee7521f486248cb21aab6) --- login-utils/runuser.1.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/login-utils/runuser.1.adoc b/login-utils/runuser.1.adoc index b128c1984..b041572e1 100644 --- a/login-utils/runuser.1.adoc +++ b/login-utils/runuser.1.adoc @@ -77,6 +77,9 @@ Same as *-c*, but do not create a new session. (Discouraged.) Do not create a pseudo-terminal, opposite of *--pty* and *-P*. Note that running without a pseudo-terminal opens the security risk of privilege escalation through TIOCSTI/TIOCLINUX ioctl command injection. +*-u*, *--user*=_user_:: +Run _command_ with the effective user ID and group ID of the user name _user_. + *-w*, *--whitelist-environment*=_list_:: Don't reset the environment variables specified in the comma-separated _list_ when clearing the environment for *--login*. The whitelist is ignored for the environment variables *HOME*, *SHELL*, *USER*, *LOGNAME*, and *PATH*. -- 2.47.2