Operating System - Linux
1745831 Members
4161 Online
108723 Solutions
New Discussion юеВ

Re: HP Mini 1000 sudo fails after update

 
Derek Whigham_1
Trusted Contributor

HP Mini 1000 sudo fails after update

I have updated the software and now sudo fails to run most admin level commands. When I drop to a terminal shell and run sudo su root. I get host not found.

sudo fails to run any command.

Two questions

1) Is there a root password in the default install

2) How do I stop it booting at grub to enter single usermode. Do I need the root password?

Many Thanks Derek

Divide and Conquer
5 REPLIES 5
Michal Kapalka (mikap)
Honored Contributor

Re: HP Mini 1000 sudo fails after update

hi,

this is a manual how to boot in to single user :

http://www.cyberciti.biz/faq/grub-boot-into-single-user-mode/

mikap
Derek Whigham_1
Trusted Contributor

Re: HP Mini 1000 sudo fails after update

Hi , I cannot get to the grub menu on start up to make the changes for single user mode.

Normally I would press esc to get to grub , but the HP Mini boots in quiet mode

So if I can get to the grub menu , I can hopefully fix this.

By the way sudo is not working as on of the updates has changes the hostname back to the default from the custom hostname I set , sudo can no longer resolve the hostname
Divide and Conquer
J. Maestre
Honored Contributor

Re: HP Mini 1000 sudo fails after update

Weird as it seems, gksudo might work even when getting the hostname error with sudo.

Alternatively, as a last resort, you can always download a minimal minimal livecd, put it on a pendrive and fix the hosts file after booting from there.
Viktor Balogh
Honored Contributor

Re: HP Mini 1000 sudo fails after update

>So if I can get to the grub menu , I can hopefully fix this.

you could try to set 'timeout' to more than zero in /boot/grub/menu.lst
Please report back if it helped.
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: HP Mini 1000 sudo fails after update

...or you can directly feed that "S" for single user mode into menu.lst
****
Unix operates with beer.