Re: switch users and still use display
On Sat 27 Jul 2024 at 23:21:06 (+0200), Hans wrote:
> I never found an official documentation about "su -p", just found it myself,
> but I read, "su -" shall do the same. It does not.
When you write something like this, can you accompany it with a
reference? The essential package util-linux's man page seems to
contradict whatever it was you found and read:
-, -l, --login
Start the shell as a login shell with an environment
similar to a real login:
[ … four bullet points … ]
-m, -p, --preserve-environment
Preserve the entire environment, i.e., do not set HOME,
SHELL, USER or LOGNAME. This option is ignored if the
option --login is specified.
Cheers,
David.
Reply to: