[GLLUG] /ect/hosts gone bad

Benjamin Cathey benjamincathey at catheycompany.com
Tue Jul 3 14:39:55 EDT 2007


Typically root is disabled on ubuntu

Jordan - 

This may help

https://answers.launchpad.net/ubuntu/+question/2583

or possibly

http://ubuntuforums.org/showthread.php?t=278049

DO NOT reload man - it's linux for god's sake ;)

If neither of those fixes your problem, let me know and we can look further.

Regards,

Benjamin Cathey
System Administrator
Cathey Company
4917 Tranter St.
Lansing, MI 48910 USA
Phone:     517.393.4720
Fax:       517.393.4225
Toll Free: 800.333.1972
"Service is Our Profession"


----- Original Message -----
From: Michael George
[mailto:george at idealso.com]
To: Jordan Robison
[mailto:jordan.robison at gmail.com]
Cc: linux-user at egr.msu.edu
Sent: Tue, 03
Jul 2007 14:23:21 -0400
Subject: Re: [GLLUG] /ect/hosts gone bad


>->> Okay, so "su", "sudo", and "su -" won't work...
>->> 
>->> Log in as root from the command prompt and look at the file.
>->> 
>->> On Tue, July 3, 2007 2:11 pm, Jordan Robison wrote:
>->> > I am using ubuntu 7.4 and su, sudo, and su - are giving me the same
>->> > responds.
>->> > unable to lookup jordan via gethostbyname()
>->> >
>->> > I was clearly not thinking right because it did not make a back up.
>->> > Although
>->> > I have tried to scp the host file from my notebook to the desktop and i
>->> > get
>->> > permission denied.
>->> >
>->> > On 7/3/07, Stephan Andre' <andres at msu.edu> wrote:
>->> >>
>->> >> On Tuesday 03 July 2007 13:39:13 Jordan Robison wrote:
>->> >> > I was messing with the hosts file and changed something around and I
>->> >> spent
>->> >> > the rest of the night trying to fix it. Here is the problem that
>->> >> happens
>->> >> > every time I use sudo:
>->> >> > sudo: unable to lookup jordan via gethostbyname()
>->> >> >
>->> >> > I am not able to do anything under Su and from what it looks like is
>->> >> that I
>->> >> > might have to reformat unless you geniuses out there know of any
>->> >> better
>->> >> way
>->> >> > of  helping me fix this problem.
>->> >>
>->> >> You give no indication as to what operating system you're using, but if
>->> >> you
>->> >> have single-user mode, you ought to be able to boot up into that, and
>->> >> then
>->> >> fix the hosts file.
>->> >>
>->> >> This is also a good time to develop a system of saving and storing
>->> >> critical
>->> >> data files, such that if they get munged they can be restored quickly.
>->> >> My
>->> >> /etc (OpenBSD) is about 8M in size, so its easy for me to make a tarball
>->> >> of that dir frequently.  Add /var/log, /var/www and perhaps a few others
>->> >> and you have the core of a configuration backup.
>->> >>
>->> >> --STeve Andre'
>->> >>
>->> >> _______________________________________________
>->> >> linux-user mailing list
>->> >> linux-user at egr.msu.edu
>->> >> http://mailman.egr.msu.edu/mailman/listinfo/linux-user
>->> >>
>->> >
>->> >
>->> >
>->> > --
>->> > Jordan Robison
>->> > _______________________________________________
>->> > linux-user mailing list
>->> > linux-user at egr.msu.edu
>->> > http://mailman.egr.msu.edu/mailman/listinfo/linux-user
>->> >
>->> 
>->> 
>->> -Michael George
>->>  Ideal Solution, LLC
>->> _______________________________________________
>->> linux-user mailing list
>->> linux-user at egr.msu.edu
>->> http://mailman.egr.msu.edu/mailman/listinfo/linux-user
>->> 

**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. 




More information about the linux-user mailing list