LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2006, 05:28 AM   #1
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Rep: Reputation: 30
Exclamation Serious problem: Accidental chmod -R 777 /


Hi guys

I accidentally did a "chmod -R 777 /". Since then I've had no end of problems during boot. I need to change permissions in /etc/init.d (debian) but can't as the logged in user. Whenever I try to su to root, i get an "setgid: Operation not permitted" error. Sudo doesn't work either.

How can I fix this?
 
Old 05-13-2006, 05:57 AM   #2
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
I had the same problem a while back.
http://www.linuxquestions.org/questi...d.php?t=424052

There is no solution in this thread though, but you should be able to login as root.

Quote:
Try with a live cd. chroot to the partion and change the ownership rights.
 
Old 05-13-2006, 06:09 AM   #3
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
My best suggestion would be to pop in a livecd (shipitand do some chmodding from there. Or go the windows way of reinstalling

hth --Jonas
 
Old 05-15-2006, 02:41 AM   #4
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Original Poster
Rep: Reputation: 30
I've managed to get it booting properly again, by using knoppix to reset some of the permissions.

However, now when it boots I'm unable to get ssh access, and whats worse is that they keyboard doesn't work so I can't log in!

Any ideas what I might've done?
 
Old 05-15-2006, 03:41 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Sorry to have to be the bearer of bad news, but your system is wrecked!

I did a similar thing when I was starting with linux (in my case chown -R kp:kp .* as root.)
I forgot that the .. file in every directory would mean that the -R flag would traverse up as well as down the filesystem. So ALL my files were owner:group kp:kp = Dead system.

Save your personal files from /home/ and re-install, otherwise you'll be storing up major problems for the future.

HTH
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessibility / password / chmod 777 Developer Beaud Linux - General 2 07-11-2005 07:46 PM
Is it safe to chmod 777 Navaboy Slackware 4 03-24-2005 06:54 AM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
chmod 777 /* ziggamon Linux - Newbie 2 09-25-2003 11:40 AM
Red Hat 8 - Unknown Error messages and accidental chmod tawsie Linux - Distributions 2 01-22-2003 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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