11 Oct
2021
11 Oct
'21
10:11
On Mon, Oct 11, 2021 at 12:55 PM jdd@dodin.org
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)
Why do you expect bash and sh to have the 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$
sh-4.4$ whoami news