No more sudo su
30 Jan 2023This is not really a TIL. In the back of my head I have know that sudo su -
or sudo su - someuser
is not really the correct way to switch to another user. But I never took the time to remember the correct way. I promised myself to finally remember it from now on:
sudo -u someuser -i
(login shell for the user ‘someuser’)