View previous topic :: View next topic |
Author |
Message |
jentuu n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/3765604854405b38e20f80.jpg)
Joined: 26 Jan 2006 Posts: 41 Location: Georgia, Tbilisi
|
Posted: Wed Mar 08, 2006 1:56 pm Post subject: /etc/hostname stop fails |
|
|
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
what to do?
thnx ![Wink ;)](images/smiles/icon_wink.gif) _________________ just emerge |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
n0z3m n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/69517421543fd992351b11.png)
Joined: 10 Jan 2005 Posts: 49 Location: Netherlands
|
Posted: Wed Mar 08, 2006 2:06 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jentuu n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/3765604854405b38e20f80.jpg)
Joined: 26 Jan 2006 Posts: 41 Location: Georgia, Tbilisi
|
Posted: Wed Mar 08, 2006 4:37 pm Post subject: |
|
|
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:
and /etc/conf.d/hostname file:
is it any error?
and in my shell konsole written this: why is it "(none)"?
thnx _________________ just emerge |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dreamwolf n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/2576182163ffb4045ecfdf.jpg)
Joined: 22 May 2002 Posts: 17 Location: Mount Laurel, NJ, USA
|
Posted: Wed Mar 08, 2006 6:50 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
n0z3m n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/69517421543fd992351b11.png)
Joined: 10 Jan 2005 Posts: 49 Location: Netherlands
|
Posted: Wed Mar 08, 2006 7:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|