11 Oct
2021
11 Oct
'21
10:22
jdd@dodin.org wrote:
Le 11/10/2021 à 09:27, Per Jessen a écrit :
su -s /bin/sh news
curious, the result is not exactly the same (not same prompt)
#sudo -u news -s /bin/bash news@ns507557:/root> exit
news@ns507557:/root> whoami news
ns507557:~ # su -s /bin/sh news sh-4.4$
Uh, try "su -s /bin/sh --login news" It's the same as "su -s /bin/sh - news" -- Per Jessen, Zürich (9.9°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland.