LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-30-2003, 10:07 PM   #1
rstmn957
LQ Newbie
 
Registered: Aug 2003
Posts: 25

Rep: Reputation: 15
hostname


Hey! how can i change the login name from yjonah@localhost to yjonah@score.
 
Old 08-30-2003, 10:39 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To set a hostname, edit the HOSTNAME line in /etc/sysconfig/network
Code:
HOSTNAME=score
Then in /etc/hosts, append the name to the end of the first line like this:
Code:
127.0.0.1       localhost.localdomain   localhost score
 
1 members found this post helpful.
Old 09-17-2003, 03:14 PM   #3
NPSHr
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9 Pro
Posts: 13

Rep: Reputation: 0
COOL. Let's say you've also got a network going with a static IP address of 192.168.0.2. Can I do the same thing on that different IP address so other computers see me as "BillyBob" or whatever?
 
Old 09-18-2003, 10:47 AM   #4
registering
Member
 
Registered: Jun 2003
Location: Florida, USA
Distribution: Drake 10.1 Download
Posts: 182

Rep: Reputation: 30
Yup, sure can. You can also use the cmd-line utility "hostname", rather than mod files directly. E.g., "hostname" tells you your hostname, "hostname BillyBob" sets your hostname to BillyBob. Don't forget to log out and back in to see the effect in a shell.
 
Old 09-22-2003, 09:23 AM   #5
registering
Member
 
Registered: Jun 2003
Location: Florida, USA
Distribution: Drake 10.1 Download
Posts: 182

Rep: Reputation: 30
Just an update: I WAS WRONG! 'hostname' (at least on RH 9.0) does NOT update everything. It only updates /etc/hosts, not /etc/sysconfig/network, so it will NOT WORK (it seems). I have to still manually modify /etc/sysconfig/network, even when using 'hostname', so anyone reading: take Mathieu's advice, not mine and save some time.
 
  


Reply



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
hostname gururaj Linux - Networking 2 01-05-2006 05:02 PM
hostname changes R153-Ab0V3 Linux - Newbie 6 01-10-2004 11:36 PM
Hostname jpauls104 Slackware 5 07-28-2003 12:16 PM
Hostname _maco_ Linux - General 3 07-07-2003 07:44 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:51 PM.

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