agent icon indicating copy to clipboard operation
agent copied to clipboard

After sudo su, user executing the command must be root

Open komatom opened this issue 2 years ago • 1 comments

Issue here is that if you sudo su, and run some commands after that, they are logged as the initial user before the sudo su command.

for example:

user1 executing sudo su user1 executing: ls /root

I think it must be

user1 executing sudo su root executing: ls /root

komatom avatar May 23 '23 20:05 komatom

i don't think it should work like that. The original user should be visible at all times.

iskenyildiz avatar Sep 29 '25 12:09 iskenyildiz