[olug] To Sudo or Not to Sudo, That is the Question

Christopher Cashell topher-olug at zyp.org
Sat Nov 1 01:50:22 UTC 2008


On Fri, Oct 31, 2008 at 7:14 PM, Carl Lundstedt
<clundst at unlserve.unl.edu> wrote:
> In knoppix/ubuntu and the like:
> sudo su -
> passwd
> done.

As a slightly shorter alternative, 'sudo -s' or 'sudo -i' will start a
new shell with elevated privileges (root shell).  Running sudo with
'-s' will preserve your existing environment, running it with '-i'
will simulate initial login, setting the environment as the privileged
user (more like 'su' vs. 'su -').

> Carl

-- 
Christopher



More information about the OLUG mailing list