Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


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

Rep: Reputation: 15

Hey! how can i change the login name from yjonah@localhost to yjonah@score.
Old 08-30-2003, 11:39 PM   #2
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
Then in /etc/hosts, append the name to the end of the first line like this:
Code:       localhost.localdomain   localhost score
1 members found this post helpful.
Old 09-17-2003, 04:14 PM   #3
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 Can I do the same thing on that different IP address so other computers see me as "BillyBob" or whatever?
Old 09-18-2003, 11:47 AM   #4
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, 10:23 AM   #5
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.


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

All times are GMT -5. The time now is 04:30 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