News for hackers. Stuff that matters.
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.

Re:Su VS sudo su VS sudo -u -i by lubutu on Saturday March 24, 2012 @04:02PM (#3750549)
Whether sudo sets $HOME depends on your /etc/sudoers configuration. Alternatively, sudo -Hs.
Re:Su VS sudo su VS sudo -u -i by guns on Saturday March 24, 2012 @07:25PM (#3751135)
Indeed. I didn't know about `sudo -H`, though, so thank you.