LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2005, 11:07 AM   #1
wizard7423
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Rep: Reputation: 15
a strange thing


Hi at all,

i fixed since few days ago a problem with /etc/resolv.conf file, but now i has already another problem with the same file!

My last problem with that file was that it did not have the right permissions. I mean that it was set as readable and writeable only for root. That caused that only root could access to the net.
I addressed that problem with:

Code:
chmod 644 /etc/resolv.conf
but now every time that i start-up the system the file has old permissions.
So every time i change its permissions, and the story goes on...
I opened the /etc/profile looking for something that changes the permission at that file. But it was not successfully.
Now i don't know where could be the instruction that chages the /etc/resolv.conf permissions.
Since i installed the Slackware10 i did not changed some configuration file to obtain this result...
I really don't know where i can see...
Some ideas?

Thanks in advance.

wizard
 
Old 01-21-2005, 11:18 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
hi,

i think you use dhcp ?
that not only gives you an ip-adress but also a " resolv.conf" file.

you could edit /etc/rc.d/rc.inet1 and change all calls to " dhcpcd......... " to "dhcpcd...-R...."
( example : /sbin/dhcpcd -d -t 10 -R eth${1} )

or put the " chmod " command in " /etc/rc.d/rc.local "

but i don't understand why permissions change ??

egag
 
Old 03-17-2005, 08:13 AM   #3
wizard7423
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Original Poster
Rep: Reputation: 15
thanks egag for your early replay, and sorry for my late answer. Anyway i tried to understand the problem using you advices, but the problem persisted, so i opened the adsl-start and i putted a

Code:
chmod 644 /etc/resolv.conf
command line at the end of the script.
This because even a lot of tests i was not able to understand where the scripts fails. I tried to print some messages, but the script (with echo commands) was not able to work correctly.
At the end this heuristic solution works well.

Thanks
Alberto
 
Old 03-17-2005, 09:08 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
ah...nice you've got it working.

and the solution......i also don't understand why the permissions are changed at boot,
but this works.

the longer i use Linux, the more i believe a " workaround " and a " solution " are the same thing

egag
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
strange thing with nfs egag Slackware 13 07-13-2005 01:03 PM
strange thing in Licq - I'm offline for others Nad0xFF Linux - Software 0 04-16-2005 07:56 AM
A strange thing happened with ! lugoteehalt Programming 3 02-26-2004 04:59 AM
strange thing cristi1979 Linux - Security 4 07-11-2003 12:03 PM
Strange thing about pine Half_Elf Linux - Software 6 06-05-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration