Can anyone explain why this is happening? (privesc)

I was doing a machine on HTB and to get the flag you had to run bash as root after setting SUID on /bin/bash, but I cannot understand why running bash -p logs you as root on the subshell, but running a normal bash or even sudo bash, does not. &#x…

Read More >>