View previous topic :: View next topic |
Author |
Message |
microtechno Apprentice
Joined: 17 Apr 2006 Posts: 224 Location: Adelaide, Australia
|
Posted: Sun Jul 30, 2006 9:44 am Post subject: /etc/host.conf: line 24: bad command 'mdns off' |
|
|
Here is a little histroy about my problems. So that It can all be worked out.
Sorry if it doesnt mean anything.
After running
It said that i needed to update portage so I did.
But like in the following post i got a Block https://forums.gentoo.org/viewtopic-p-3178419.html#3178419 So I used what the post said
Code: | emerge --buildpkgonly --nodeps shadow && emerge -C pam-login && emerge --usepkgonly shadow |
This worked, so then I used a Deep world
Code: | emerge --deep world | or something like that.
I then ran the again. Because i thought that I had to.
Since i was trying to run php on my server I noticed that it wasnt there. So I looked for the Code and followed.
http://www.gentoo.org/proj/en/php/php-upgrading.xml
The code that I used is.
Code: | USE="cli apache2" emerge '=dev-lang/php-4*' '=dev-lang/php-5*' |
Code: | emerge '=dev-lang/php-4*' |
Code: | emerge '=dev-lang/php-5*' |
Code: | (settings for PHP4)
APACHE2_OPTS="-D PHP4"
(or settings for PHP5)
APACHE2_OPTS="-D PHP5" |
Since Php wasnt working I restarted my 'server'
Then i was greeted with the following as gentoo started then as I loged in.
Code: |
* Dhcp
* Runnning Dhcp
/etc/host.conf: line 24: bad command 'mdns off'
* eth0 recived address 192.168.0.1
*Mounting network filesystems ...
*starting sshd
*Starting apache2 on Server ...
/etc/host.conf: line 24: bad command 'mdns off'
*Starting vixie-cron ...
*Starting local ...
/etc/host.conf: line 24: bad command 'mdns off'
This is server.localdomain (Linux i686 2.6.15.3) 19:46:33
server login: root
configuration error - unknown item 'FAILLOG_ENAB' (notify administrator)
configuration error - unknown item 'LASTLOG_ENAB' (notify administrator)
configuration error - unknown item 'MOTD_FILE' (notify administrator)
configuration error - unknown item 'FTMP_FILE' (notify administrator)
configuration error - unknown item 'ENV_ROOTPATH' (notify administrator)
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)
configuration error - unknown item 'CHRN_AUTH' (notify administrator)
Password:
server ~ # |
So i dont know what to do.
When the 'world' had finished there were some Config Files in /etc that it didnt do anything to. But i have no idea what to do with them so I left it. That could be the problem. I am a nubie to Gentoo and linux.
any help would be appreciated. |
|
Back to top |
|
|
Philantrop Retired Dev
Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Sun Jul 30, 2006 9:51 am Post subject: |
|
|
Run etc-update or dispatch-conf (just use the one you're used to) to update your configuration files. _________________ If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting. |
|
Back to top |
|
|
microtechno Apprentice
Joined: 17 Apr 2006 Posts: 224 Location: Adelaide, Australia
|
Posted: Mon Jul 31, 2006 5:36 am Post subject: |
|
|
Is this the output that it should have.
Code: | #etc-update
scanning configuration files
Exiting: Nothing left to do... |
Also it hasnt fixed the "mdns off" when the server started.
Is there any information that someone knows about fixinf config files? because i have no idea how to fix them.
As I was
The code that comes up when I log in also came up. I am the admin but i dont know what it means. Any admins that do?
Code: | configuration error - unknown item 'FAILLOG_ENAB' (notify administrator)
configuration error - unknown item 'LASTLOG_ENAB' (notify administrator)
configuration error - unknown item 'MOTD_FILE' (notify administrator)
configuration error - unknown item 'FTMP_FILE' (notify administrator)
configuration error - unknown item 'ENV_ROOTPATH' (notify administrator)
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)
configuration error - unknown item 'CHRN_AUTH' (notify administrator) |
|
|
Back to top |
|
|
microtechno Apprentice
Joined: 17 Apr 2006 Posts: 224 Location: Adelaide, Australia
|
Posted: Wed Aug 02, 2006 12:15 pm Post subject: |
|
|
I taged out the mdns so that it looks like
But that only fixed the Code: | /etc/host.conf: line 24: bad command 'mdns off' |
the other config errors still are there when i log in.
does anybody know what is wrong?
Do i need to submit a bug report of something?
I am very new to gentoo/linux? |
|
Back to top |
|
|
Philantrop Retired Dev
Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Wed Aug 02, 2006 1:33 pm Post subject: |
|
|
You should find the other options in /etc/login.defs. _________________ If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting. |
|
Back to top |
|
|
microtechno Apprentice
Joined: 17 Apr 2006 Posts: 224 Location: Adelaide, Australia
|
Posted: Sat Aug 05, 2006 6:05 am Post subject: |
|
|
Thanks
I commented out the problematic commands and the errors have stoped.
Are these commands needed though?
It wont reak any havoc on my box?
thanks. I belive that this topic is almost solved. |
|
Back to top |
|
|
Jambonant Apprentice
Joined: 18 Mar 2006 Posts: 181 Location: Montreal, Canada
|
Posted: Thu Aug 10, 2006 5:18 am Post subject: |
|
|
microtechno wrote: | Thanks
I commented out the problematic commands and the errors have stoped.
Are these commands needed though?
It wont reak any havoc on my box?
thanks. I belive that this topic is almost solved. |
Hey I have the exact same problem, and wanted to know what did you actualy commented out (in /etc/login.defs) in order to make it all work fine, and did you had any problem afterward ? _________________ Francois Castonguay,
Registered Linux User #412639
4 AMD Phenom 9550 Quand-Core, 4G ram |
|
Back to top |
|
|
Philantrop Retired Dev
Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Thu Aug 10, 2006 6:29 am Post subject: |
|
|
Sorry, I thought I had answered the original question already: You can comment out the options mentioned above without any risk.
I'm currently in a hurry but I'll explain the options' meanings later today (I hope). _________________ If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting. |
|
Back to top |
|
|
/albert n00b
Joined: 17 Jan 2005 Posts: 58
|
Posted: Thu Aug 10, 2006 9:11 am Post subject: |
|
|
I think this is not the right behavior of etc-update. Or did you update it before it was said here?
For a while, I had similar problems with etc-update. It did not found all my configuration-files. I think, it was resulted by changed configuration of etc-update itself.
You can fix it by running:
Code: |
CONFIG_PROTECT=/etc etc-update
|
All the errors you presented are there because of bad configuration files of differentsystem services like PAM, your login and so on. It is really important that you update your configuration files after every system-update you do.
If the above trick with etc-update does not work (if it sais 'Nothing left to do' but there is a lot left to do, it does not work), try out a different tool for it like dispatch-conf as was said here (I never tried it, but it should do the same).
You can check it by hand, if there are new configuration files waiting to be updated:
Code: |
find /etc | grep ._cfg
|
This works because Portage names new configuration files, which are already there (because it doesn't overwrite it), like ._cfgNUMBER_OLDNAME. |
|
Back to top |
|
|
microtechno Apprentice
Joined: 17 Apr 2006 Posts: 224 Location: Adelaide, Australia
|
Posted: Fri Aug 11, 2006 2:35 am Post subject: |
|
|
Quote: | Hey I have the exact same problem, and wanted to know what did you actualy commented out (in /etc/login.defs) in order to make it all work fine, and did you had any problem afterward ? |
Where the errors said
Code: | configuration error - unknown item 'MOTD_FILE' (notify administrator) |
I just went to the file that Philantrop said.
Then commented out the code that was causing the error.
I dont know if this has fixed it or hidden the problem
Becuase when i updated the system i didnt know about the config files. |
|
Back to top |
|
|
Jambonant Apprentice
Joined: 18 Mar 2006 Posts: 181 Location: Montreal, Canada
|
Posted: Fri Aug 11, 2006 5:55 am Post subject: |
|
|
/albert wrote: | I think this is not the right behavior of etc-update. Or did you update it before it was said here?
For a while, I had similar problems with etc-update. It did not found all my configuration-files. I think, it was resulted by changed configuration of etc-update itself.
You can fix it by running:
Code: |
CONFIG_PROTECT=/etc etc-update
|
All the errors you presented are there because of bad configuration files of differentsystem services like PAM, your login and so on. It is really important that you update your configuration files after every system-update you do.
If the above trick with etc-update does not work (if it sais 'Nothing left to do' but there is a lot left to do, it does not work), try out a different tool for it like dispatch-conf as was said here (I never tried it, but it should do the same).
|
I'm a little confused when I do the command requested CONFIG_PROTECT=/etc etc-update, I'm then promted with some choices, what do I have to do?
Code: |
Frank ~ # CONFIG_PROTECT=/etc etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/skel/.bashrc (1)
2) /etc/udev/rules.d/50-udev.rules (1)
3) /etc/ssl/misc/CA.pl (1)
4) /etc/ssl/misc/CA.sh (1)
5) /etc/DIR_COLORS (1)
6) /etc/init.d/apache2 (1)
7) /etc/bash/bashrc (1)
8) /etc/init.d/bootmisc (1)
9) /etc/init.d/checkfs (1)
10) /etc/init.d/checkroot (1)
11) /etc/X11/xdm/chooser (1)
12) /etc/conf.d/clock (1)
13) /etc/init.d/clock (1)
14) /etc/init.d/consolefont (1)
15) /etc/conf.d/domainname (1)
16) /etc/conf.d/gpm (1)
17) /etc/init.d/halt.sh (1)
18) /etc/conf.d/hdparm (1)
19) /etc/init.d/hdparm (1)
20) /etc/host.conf (1)
21) /etc/conf.d/hostname (1)
22) /etc/apache2/httpd.conf (1)
23) /etc/inittab (1)
24) /etc/init.d/keymaps (1)
25) /etc/init.d/localmount (1)
26) /etc/pam.d/login (1)
27) /etc/login.defs (1)
28) /etc/make.conf.example (1)
29) /etc/cron.weekly/makewhatis (1)
30) /etc/init.d/modules (1)
31) /etc/ssh/moduli (1)
32) /etc/nanorc (1)
33) /etc/init.d/net.lo (1)
34) /etc/init.d/netmount (1)
35) /etc/init.d/nscd (1)
36) /etc/ssl/openssl.cnf (1)
37) /etc/profile (1)
38) /etc/conf.d/rc (1)
39) /etc/init.d/reboot.sh (1)
40) /etc/X11/rstart/rstartd.real (1)
41) /etc/scsi_id.config (1)
42) /etc/securetty (1)
43) /etc/services (1)
44) /etc/init.d/sshd (1)
45) /etc/pam.d/sshd (1)
46) /etc/ssh/sshd_config (1)
47) /etc/sysctl.conf (1)
48) /etc/pam.d/system-auth (1)
49) /etc/udev/udev.conf (1)
Please select a file to edit by entering the corresponding number.
(don't use -3 or -5 if you're unsure what to do)
(-1 to exit) (-3 to auto merge all remaining files)
(-5 to auto-merge AND not use 'mv -i'):
|
should I go with option 5 or 3 ? _________________ Francois Castonguay,
Registered Linux User #412639
4 AMD Phenom 9550 Quand-Core, 4G ram |
|
Back to top |
|
|
/albert n00b
Joined: 17 Jan 2005 Posts: 58
|
Posted: Fri Aug 11, 2006 12:24 pm Post subject: |
|
|
If you mean -5 or -3, the tool sais "don't use -3 or -5 if you're unsure what to do".
The list you got is the list of the configuration-files which have to be updated.
You now have to enter each number of the configuration files (number 1 - 49) and then, the diff between the two files (the old and the new configuration file) is shown you. Hit 'q' to exit this. Then, you got the choice what to do. You can choose between deleting the old and accept the new file, the other way around or again show the diff or to interactivly merge the file.
There should be also an articel in the gentoo handbook about etc-update or look at the manual page.
I always use new configuration files, when I never touched the old ones. I think this is safe. Only the configuration files I changed myself a little bit, I often ignore the update or changed it manually. |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Aug 11, 2006 2:52 pm Post subject: |
|
|
Hi.
About the mdns=off warning, you can look here and check the bug report. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
microtechno Apprentice
Joined: 17 Apr 2006 Posts: 224 Location: Adelaide, Australia
|
Posted: Wed Sep 27, 2006 9:04 am Post subject: |
|
|
thanks,
gives me piece of mind now. |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
|
Back to top |
|
|
|