LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-07-2004, 11:14 PM   #1
srcosmo
LQ Newbie
 
Registered: Apr 2004
Location: Canada
Distribution: Mandrake 9.2
Posts: 6

Rep: Reputation: 0
Booting dies with 'cannot execute "/etc/rc.d/rc.sysinit" ' (Mandrake 9.2)


Hello,

While using DrakPerm in Mandrake 9.2, I messed up adding some rules, and ended up changing the ownership of /etc, /var and (maybe) /bin, so that they were all owned by a normal user instead of root.

Realizing what happened, I took out the rules I'd added, and saved. I ran "msec", hoping that it would return the permissions back to normal. Apparently not.

Now whenever I boot up, I receive this error:

INIT: version 2.85 booting
INIT: cannot execute "/etc/rc.d/rc.sysinit"
INIT: Entering runlevel: 5
INIT: cannot execute "/etc/rc.d/rc"


I assume this is because the permissions are still hosed, since I don't recall editing any of the files it mentions. Is there any way I can fix this?

I tried booting the first disc of the 9.2 installer and typing "rescue", but it dies saying:

can't open /etc/resolv.conf for read

I assume this is also due to the screwed permissions.

Thanks a LOT,

Mark
 
Old 04-08-2004, 02:41 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try entering as root:
chmod 755 /etc

Sounds like the x bit isn't set even for root which for a directory means that you can't enter.
 
Old 04-08-2004, 11:35 PM   #3
srcosmo
LQ Newbie
 
Registered: Apr 2004
Location: Canada
Distribution: Mandrake 9.2
Posts: 6

Original Poster
Rep: Reputation: 0
That's what I did in the end, more or less... The trouble was getting to a shell, since the boot process would just hang.

I ended up adding init=/bin/bash while booting, which got me a shell.
After that I had to use mount -oremount,rw / to get write access, and then I did chmod on everything in /etc.

Problem (mostly) solved.. Except now I have to try to fix all the other permissions that got messed up. Ah well..

Thanks for your help!

Quote:
Originally posted by jschiwal
Try entering as root:
chmod 755 /etc

Sounds like the x bit isn't set even for root which for a directory means that you can't enter.
 
  


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
running a script: ". scriptname" vs "./scriptname" to execute beeblequix Linux - Enterprise 3 11-07-2005 04:40 PM
cannot execute "/sbin/agetty" <-- appears during kernel boot process CestusGW Linux - General 2 01-10-2004 05:16 PM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM
Booting Mandrake with "logitech cordless desktop mx" lifan Linux - Hardware 2 11-01-2003 03:55 AM
dual booting winME with RedHat 7.2 "HOW TOOO""HELP" jdbarrow Linux - Software 1 03-11-2002 05:33 PM

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

All times are GMT -5. The time now is 09:51 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