PDA

View Full Version : [ubuntu] Post Install: How to enable sudo



supergrover1981
April 28th, 2008, 05:45 PM
Hi Guys,

I've just tried to upgrade from 7.10 to 8.04. The process was going fine, but while updating chillispot (approx %85...I think) the installer froze.

Upon restarting, most programs were updated and most functionality was fine, apart from a few things:

- Most importantly, trying to run sudo commands brings up "sudo: unable to resolve host linuxlaptop"

- Even fairly basic actions, such as copy/pasting in nautilus, bring up an insufficient permissions notification

- Network manager has disappeared, making internet connections impossible


I suspect/hope I can solve the network manager problems via others' posts on this forum if I can get sudo back - that's the one that's really causing trouble. I tried commenting out the "linuxlaptop" line in /etc/hosts, but it had no effect.

Any suggestions at all deeply appreciated.

Cheers,
- Supergrover

dioukf
April 28th, 2008, 06:08 PM
Boot from installer CD, mount your filesystem, and edit your etc/sudoers file.

hyperair
April 28th, 2008, 06:14 PM
The /etc/sudoers file is configured correctly by default. The problem here is that the computer cannot resolve its own hostname. What you must do is open System->Administration->Network, go to Hosts, click "Add". IP Address is 127.0.1.1, and type your hostname (i.e. linuxlaptop) under the aliases.

Alternatively you could open your /etc/hosts file and add this line:


127.0.1.1 linuxlaptop


Restart and your sudo shall be fixed.

glendavee
April 28th, 2008, 06:16 PM
Have a look at this thread
http://ubuntuforums.org/showthread.php?t=770883

supergrover1981
April 29th, 2008, 04:19 AM
*standing ovation*
*rapturous applause*
*throws panties*

...Many thanks guys, worked a charm. Still a whole other bunch of errors I need to work through, but this one makes it all a lot easier. Cheers.

- SuperGrover