Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/hostname stop fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jentuu
n00b
n00b


Joined: 26 Jan 2006
Posts: 41
Location: Georgia, Tbilisi

PostPosted: Wed Mar 08, 2006 1:56 pm    Post subject: /etc/hostname stop fails Reply with quote

hello
when I'm booting system it says that I must stop using /etc/hostname and must use /etc/conf.d/hostname ,but /etc/hostname stop comand fails, it says permission denided :?
same the problem with domainnames, I want to stop /etc/dnsdomainname and want to start /etc/conf.d/domainname but /etc/dnsdomainname stop stil permission denided 8O
what to do?

thnx ;)
_________________
just emerge
Back to top
View user's profile Send private message
n0z3m
n00b
n00b


Joined: 10 Jan 2005
Posts: 49
Location: Netherlands

PostPosted: Wed Mar 08, 2006 2:06 pm    Post subject: Reply with quote

There is no way to start or stop these conf-files, they are not executable, you could delete /etc/hostname & /etc/dnsdomainname
(assuming you've got /etc/conf.d/hotname end /etc/conf.d/domainname properly set-up), then do "/etc/init.d/domainname restart" and "/etc/init.d/hostname restart"
_________________
Holy penguin pee!
Back to top
View user's profile Send private message
jentuu
n00b
n00b


Joined: 26 Jan 2006
Posts: 41
Location: Georgia, Tbilisi

PostPosted: Wed Mar 08, 2006 4:37 pm    Post subject: Reply with quote

I do that
Quote:

"/etc/init.d/domainname restart" and "/etc/init.d/hostname restart"

but
Quote:

/etc/conf.d/domainname: line 1: homenetwork: command not found

here it is my /etc/conf.d/domainname file:
Quote:
homenetwork

and /etc/conf.d/hostname file:
Quote:
localhost

is it any error?
and in my shell konsole written this:
Quote:
(none) shota #
why is it "(none)"?
:?:

thnx
_________________
just emerge
Back to top
View user's profile Send private message
dreamwolf
n00b
n00b


Joined: 22 May 2002
Posts: 17
Location: Mount Laurel, NJ, USA

PostPosted: Wed Mar 08, 2006 6:50 pm    Post subject: Reply with quote

Not sure why your init scripts are trying to exec your config files, but I suggest you change your /etc/conf.d/hostname file to something else; I'm no expert, but setting your machine's hostname to "localhost" sounds like trouble to me.

dreamwolf
Back to top
View user's profile Send private message
n0z3m
n00b
n00b


Joined: 10 Jan 2005
Posts: 49
Location: Netherlands

PostPosted: Wed Mar 08, 2006 7:20 pm    Post subject: Reply with quote

your conf files are messed up....
here are mine :

/etc/conf.d/hostname :
Code:
# /etc/conf.d/hostname

# Set to the hostname of this machine
HOSTNAME="flowerpower"


/etc/conf.d/domainname

Code:


# /etc/conf.d/domainname

# When setting up resolv.conf, what should take precedence?
#  0 = let dhcp/whatever override DNSDOMAIN
#  1 = override dhcp/whatever with DNSDOMAIN

OVERRIDE=1

# To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf
# (domain entry in /etc/resolv.conf and FQDN in /etc/hosts).
#
# DNSDOMAIN merely sets the domain entry in /etc/resolv.conf, see
# the resolv.conf(5) manpage for more info.

DNSDOMAIN="home.zmog.nl"

# For information on setting up NIS, please see:
#   http://www.linux-nis.org/nis-howto/HOWTO/

NISDOMAIN=""

 



PS. localhost is fine for stand-alone machines
_________________
Holy penguin pee!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum