Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I accidently changed the permissions of linux /

sudo chown -R deploy:deploy /

and messed up every thing. SSH is not working, web server showing error. And it is a cloud server! (Ubuntu 10.04)

There are a lot of similar questions on chmod command on / But none on chown

How to restore this ?

I appreciate the help!

share|improve this question

2 Answers 2

Back up any files you particularly care about. Recover the system from your latest backup. Restore the files you backed up to bring the system back to current.

This is why you make backups. You could spend hours and hours trying to get every file's permission right and have some subtle problems days or weeks down the road. It's not worth it.

share|improve this answer
2  
On the plus side, you just made it really simple to back up the (broken) system with rsync -a deploy@111.222.333.444:/ backupdir/. –  Eroen Mar 20 '12 at 5:36

Agree with David, you will have to start all over. At this point your probably best off recovering as much as you can from that machine and the re-installing everything.

If you are having trouble getting anything to work you can always try to change the owner to root and then recover and see if you can recover your files that way.

Good luck!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.