D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] sudo

 

Paul Hirst wrote:
On Tue, 2010-02-09 at 08:49 +0000, Gordon Henderson wrote:

If you really can't modify the file, then stop mucking about with sudo and
do a real su;

   su -

then you're really root and anything sudo might do won't get in the way.
If you don't have su, then sudo /bin/bash will work.

My preferred incantation under Ubuntu is

sudo su -

To get a proper root environment. Anyone have other, better
incantations?

How about

  sudo -i

or

  sudo -s

depending on whether you want root's environment or not?

James

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html