View previous topic :: View next topic |
Author |
Message |
pinr Apprentice
Joined: 26 Jan 2003 Posts: 241 Location: Monterrey, Mexico
|
Posted: Mon Sep 13, 2004 11:13 pm Post subject: Help can't delete resolv.conf |
|
|
Something weird has happened to /etc/resolv.conf it has no permissions whatsoever I cannot read it or delete it even as root. How can I delete this file I can no longer connect to the internet as it is corrupted. |
|
Back to top |
|
|
Jaxom Tux's lil' helper
Joined: 31 Jan 2003 Posts: 137
|
Posted: Tue Sep 14, 2004 12:09 am Post subject: |
|
|
First thing I would do in that case is
That'll force a fsck on reboot to see if you have hdd problems since that file is kind of important...I'm just a better safe than sorry kind of guy.
Otherwise you might try being superuser and
Code: | chown root:root /etc/resolve.conf |
that should set ownership back to the root user and then you can do whatever else you need like set readable permissions back on the file with
Code: | chmod 644 /etc/resolve.conf |
_________________ Undisputed Heavyweight Champion. If it's undisputed, WHAT'S ALL THE FIGHTING ABOUT?!?! -- George Carlin |
|
Back to top |
|
|
pinr Apprentice
Joined: 26 Jan 2003 Posts: 241 Location: Monterrey, Mexico
|
Posted: Tue Sep 14, 2004 2:13 am Post subject: |
|
|
I really can't do anything with this file. If I try either chown or chmod as root it just says:
cannot access ´resolv.conf' : Permission denied
the same thing happens with rm or any other command |
|
Back to top |
|
|
fr0z n00b
Joined: 19 Jun 2004 Posts: 37 Location: Singapore
|
Posted: Tue Sep 14, 2004 2:20 am Post subject: |
|
|
Sounds weird. Anything indicative in your syslog messages? That might give you a better idea. Otherwise I would go with the fsck suggestion by Jaxom, better to be safe than sorry. |
|
Back to top |
|
|
pinr Apprentice
Joined: 26 Jan 2003 Posts: 241 Location: Monterrey, Mexico
|
Posted: Tue Sep 14, 2004 2:28 am Post subject: |
|
|
ok I managed to fix it with
reiserfsck --fix-fixable /dev/hda4
That removed the offending resolv.conf and I now have the Internet back
Thanks for the help |
|
Back to top |
|
|
|