11 Oct
2021
11 Oct
'21
10:44
Le 11/10/2021 à 12:22, Per Jessen a écrit :
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"
yes thanks you all, I can do what I need and wont go more deep in details mush too hard for my head :-) jdd -- http://dodin.org https://valeriedodin.com