LinuxQuestions.org
Help answer threads with 0 replies.
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-31-2004, 07:48 PM   #1
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Rep: Reputation: 15
Question What are the correct permissions for /etc?


I did a really dumb thing. I decided to put my /etc into CVS to track changes.

So I created a CVS repository, deleted my /etc directory, and replaced it with a copy I checked out of my CVS repository.

However, before checking it out of CVS I changed the permissions on the directory so that my regular users can't access it using chmod -R 770

But I realized too late that this made all the files executable. So my entire /etc directory is executable.

So I can't reboot because the slackware /etc/rc.d/rc.M file checks if files are executable before executing them. So it does things it shouldn't do and wn't boot.

So what are the correct permissions for my /etc direcotry?

-Dan
 
Old 01-31-2004, 08:56 PM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Well, something to consider if you made this change recursive through the /etc tree. Do another chmod recursively across the tree to 644 (rw-r--r--). Then chmod 755 (rwxr-xr-x) the desired scripts in /etc/rc.d and /etc/profile.d directories. These two are the main startup scripts. There are others in pcmcia, hotplug.d, etc. You could also review to see they need to be marked executable.

If you are not able to boot the system to make the changes, you may need to boot the Slack install CD, and mount the partition manually. Make desired changes and unmount the partition.

Others may have more elegant solutions, and this does not account for anything that would or should be suid root or other issues. I do not think there should be anything that difficult in the /etc tree. But you may want to look closely at /etc/X11 tree if you default to runlevel 4. Consider reverting back to runlevel 3 until it is repaired. But it might at least help to get the system back into operation.

If you desire I can provide a tarball of my /etc tree from my Slack 9.1, please email the request. Perhaps if you post what version you have then someone here could do the same for your particular version.

Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
automounting fat32 drive with correct permissions johannlo Linux - General 1 07-05-2005 08:37 PM
Vsftpd changes file permissions....how to correct? 88guy Linux - Software 1 05-25-2004 05:17 PM
Setting correct permissions for my ~/ ShadyCharacter Linux - General 2 04-14-2004 11:06 PM
How to set correct file/directory permissions pat.delaney Linux - Networking 5 12-02-2003 09:39 AM
giving apache the correct permissions dflorence Linux - Newbie 3 11-06-2003 08:27 AM

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

All times are GMT -5. The time now is 04:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration