[H-GEN] stupid needs help - sudo and hostname

Troy Piggins troy at piggo.com
Tue Jun 10 07:05:23 EDT 2008


Just re-installed a linux box today.  Hostname "netserv".  All
went fine - Ubuntu 8.04 distro.  Copying over config files from
previous installation to "make it easier", I renamed /etc/hosts
to /etc/hosts.INSTALL so I could copy the previous installation's
hosts file into /etc.

Doing all this as a user, I had been using sudo to do these type
of operations.  But when I tried to copy /mnt/usbdrive/etc/hosts
(the previous install's hosts file) to /etc, get a sudo error
about "netserv hostname not known".  So now I can't sudo
anything, and can't get /any/ hosts file to work.

Didn't realise sudo was tied to the hostname.

The install was relatively new and root doesn't even have a
password set by me.

Please help the goose, me, out.

My immediate thought was that I could plug the disk into another
install or live CD and edit the hosts file from there, but I have
set it up as a 2 disk RAID1 array and not sure if that will work.
Not that experienced with RAID.

I did try a Damn Small Linux live CD, but for the life of me
it can't even see the RAID array.  Didn't show up with a 
"sudo fdisk -l" anyway.

Any ideas?

-- 
Troy Piggins | http://piggo.com/~troy                           
RLU#415538                                                      ,-O   (o-    O  
                                                               O   )  //\     O 
                                                                `-O   V_/_  OOO




More information about the General mailing list