On 23 May 12:14, Ted Harding wrote:
Alternatively (which is my preferred method for root operations), you can have a terminal window tucked away somewhere in which you are permanently logged in as root -- the method for achieving that starting as a normal user being
su -
followed by entering root's password at the subsequent prompt.
Bad habit to leave root terminals kicking about... For future reference though, if the user has sudo access, then a (much) nicer way to get a root shell is: sudo -i
Also, if there are multiple users on the system, and you need to login as a different user, and have sudo access, you can do: sudo -u username -i
I tend to split websites out in to different users, and not as my main account on my server, being able to login as those users is quite handy at times (the sites are generally django based, so occasionally I might want to run some manage commands), my sudo setup might be a little odd though :)
Cheers,