Re:Su VS sudo su VS sudo -u -i
by ars on Saturday March 24, 2012 @10:13PM
(#3751481)
"With no extra arguments, as far as I can tell su <username> is exactly the same as attempting to login remotely as that user,"
This is not correct. su does not change the ownership of the pts (tty), so for example you can not run screen after doing that.
I actually have no idea how to change to a different user and also setup the pts properly, so I've resorted to telneting to localhost when I need to do that.
Re:Su VS sudo su VS sudo -u -i
by BCM43 on Sunday March 25, 2012 @12:22AM
(#3751714)
I've changed the permissions of /dev/pts/X in the past to allow anybody to access it. (e.g. sudo chmod o+rw /dev/pts3) This may open up the screen session to others, I've not played around with it enough.
This is not correct. su does not change the ownership of the pts (tty), so for example you can not run screen after doing that.
I actually have no idea how to change to a different user and also setup the pts properly, so I've resorted to telneting to localhost when I need to do that.