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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-17-2002, 11:16 PM   #1
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Rep: Reputation: 15
Changing root@localhost to root@domain.com


How can I change this boring root@localhost thing to
something like root@domain.com?
Not only it's boring, even some email servers won't accept my mail.
Any help appreciated,
Thank you.
 
Old 04-17-2002, 11:34 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
The config files are located in the "/etc/sysconfig" tree. Change localhost to whatever you want.

Are you spending alot of time as root? The recommended behavior is to use a normal user account and then use the "su" command to become root only when *required*.

Last edited by zmedico; 04-17-2002 at 11:37 PM.
 
Old 04-18-2002, 12:37 AM   #3
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
zmedico,
I searched all over /etc/susconfig, but couldn't find anything about localhost.
Could you give me the exact location?
By the way, no, I'm not spending that much time using root. It just irritates me, you know,
Thanks.
 
Old 04-18-2002, 03:16 AM   #4
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
use
linuxconf
thats easier
 
Old 04-18-2002, 08:28 AM   #5
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
I'm using Linuxconf 1.24 (subrev 2)
I can't find it guys, I must be a blind or something..
 
Old 04-18-2002, 12:41 PM   #6
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
I'm using RedHat 7.2 and the relevent files seem to be in this
file:
/etc/sysconfig/network

and in this directory:
/etc/sysconfig/networking/profiles/default

After you make changes, you can do this to restart your network service:

/sbin/service network restart

Last edited by zmedico; 04-18-2002 at 05:20 PM.
 
Old 04-18-2002, 01:37 PM   #7
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
Hmm, I guess things got changed in RH 7.2.
I don't have the networking folder, under
/etc/sysconfig/
 
Old 04-18-2002, 01:40 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by jayakrishnan
use
linuxconf
thats easier
linuxconf is unstable and buggy.. i wouldn't recommend it. its also not installed by default anymore after 7.0
 
Old 04-18-2002, 03:16 PM   #9
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
What Trickykid said, Linuxconf is buggy and hatchets your init into a giant googly mess. That, and no one is shipping it by defualt.

In RedHat, the file is

/etc/sysconfig/network

Edit that and change:

NETWORKING=yes
HOSTNAME=localhost.localdomain

to...

NETWORKING-yes
HOSTNAME=FinGivesAStraightAnswer.whatever.com

That would change the name of the machine to something exceedingly long... however, your mail problem is coming from the entry in /etc/hosts. LEAVE the localhost entry, but add one for your machine, like:

123.123.123.123 YeahBob.whatever.com whatever

That is if you want your mail to originate from root@yeahbob.whatever.com, otherwise, just cut out the hostname and have:

123.123.123.123 whatever.com

Also, make sure to replace that bogus mess with your IP address.

Cheers,

Finegan

P.S. Your are either going to have to take this to runlevel 1 and then back to 3 and hand kill and restart sendmail... OR, just reboot the machine to have this take effect.

Last edited by finegan; 04-18-2002 at 03:17 PM.
 
Old 04-18-2002, 04:50 PM   #10
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
/etc/sysconfig/network
This is what I was looking for..
Thank you guys,
Solved the problem at last..
 
Old 04-19-2002, 03:15 AM   #11
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30



Quote:
linuxconf is unstable and buggy.. i wouldn't recommend it. its also not installed by default anymore after 7.0
I dont think linuxconf is unstable. I have been using it for some time and don't find any reason to label it as unstable.

Whats so unstable abt it?
 
Old 04-19-2002, 10:32 AM   #12
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
Linuxconf subrev 4 got some problems with mail configuration.
It messed up my aliases last time, so I'm currently using subrev 2.

The simpler the better.
 
Old 08-04-2002, 04:56 PM   #13
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
hi,

@fingan:

NETWORKING-yes
HOSTNAME=FinGivesAStraightAnswer.whatever.com


I had the same Problem as Stingreen and now I can send the messages without any complaint from mutt but there is uncertainty in my mind about this whole thing.

I mean all of my emails seem to come from "FinGivesAStraightAnswer.whatever.com" and all the replies to that emails come through that server aswell.

Can`t it be that the webmaster of that server may not like that and give me a warning at some time?? I if it were legal than it is almost an open invitation to SPAMMERS ??

I can`t believe this is tolerated by all servers...

Am I mixing up some things or what??

what do you think ppl??

Realos
 
Old 10-15-2002, 07:37 PM   #14
Spiderwks
LQ Newbie
 
Registered: Oct 2002
Posts: 3

Rep: Reputation: 0
Angry Seeing linux box from a win 2k box

I tring too see my win 2k machine for my redhat 7.2 box. They cannot seem to see each other. Please excuse me , i'm new to linux. I have dhcp installed and can access the internet form both machines. I have tried seaching for the linux box but not coming up anything. I'm lost, any help would be nice.



Thanks in advance,

Newbie
 
Old 12-17-2002, 06:21 PM   #15
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
hi buddies,

I have got that problem in Debian 3.1 (Knoppix 3.1).

My /etc/hosts has "127.0.0.1 myhost.something.net myhost"
/etc/hostname has only one line "myhost.something.net"

Since I am new to Debian, I do not know where to change the settings so that mail written by me seem to come from myself@mydomain.com instead of from "realos@Knoppix".

Any hint or reference to a doc is well appreciated,
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root@localhost Problem petenyce Linux - Newbie 1 09-28-2005 09:55 PM
root@localhost t0ker Linux - Newbie 4 09-14-2004 06:38 AM
Cannot POP to root@localhost.... greggy69 Linux - Software 0 08-05-2004 04:40 PM
root@localhost questions new2server Linux - Newbie 10 03-04-2004 12:52 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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