Re:Su VS sudo su VS sudo -u -i
by guns on Saturday March 24, 2012 @03:19PM
(#3750396)
They are not equivalent. `sudo su` changes the values of USER, HOME, and SHELL to that of the root user. `sudo -s` only changes USER (it seems), but HOME is retained as the SUDO_USER's home directory.
Neither invocation changes the working directory, which is convenient.
Neither invocation changes the working directory, which is convenient.