Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-30-2004, 11:54 AM   #1
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
embarassing hosts question

my hosts file is something like this localhost.localdomain localhost <value of HOSTNAME>

after rebooting, it sets my hostname as 192 (ie.. root@192 username)
What in the heck is going on?

Old 03-30-2004, 12:36 PM   #2
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
On slackware if I do cat /etc/HOSTNAME it will give me the value of the hostname ( What does your output look like?
Old 03-30-2004, 12:43 PM   #3
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Original Poster
Rep: Reputation: 30
heres the deal

ok after entering that into the /etc/hosts file I ran the command
hostname --file /etc/hosts
which would pull the hostname from that file... apparently I made it harder than what it needed to be as
hostname ryan
would have worked just fine

well it looks good now and I appreciate the effort.

cat /etc/HOSTNAME
cat: /etc/HOSTNAME: No such file or directory

Ryan II


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embarassing emacs file~ question michaelsanford Linux - Software 3 03-18-2005 09:08 AM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
embarassing admission acid_kewpie General 14 01-26-2005 08:26 AM
embarassing email ? ryedunn Linux - Newbie 2 01-04-2005 03:33 PM
most embarassing question ever bandofmercy Slackware 10 03-24-2003 05:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration