Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help can't delete resolv.conf
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
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Mon Sep 13, 2004 11:13 pm    Post subject: Help can't delete resolv.conf Reply with quote

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
View user's profile Send private message
Jaxom
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2003
Posts: 137

PostPosted: Tue Sep 14, 2004 12:09 am    Post subject: Reply with quote

First thing I would do in that case is

Code:
shutdown -F now


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
View user's profile Send private message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Tue Sep 14, 2004 2:13 am    Post subject: Reply with quote

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
View user's profile Send private message
fr0z
n00b
n00b


Joined: 19 Jun 2004
Posts: 37
Location: Singapore

PostPosted: Tue Sep 14, 2004 2:20 am    Post subject: Reply with quote

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
View user's profile Send private message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Tue Sep 14, 2004 2:28 am    Post subject: Reply with quote

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
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