Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've screwed my CentOS 6 server. I've ran chmod on a few symlinks and changed permissions important file such those in /bin and all commands even clear says Permission Denied. Now It is unable to boot.

How do I restore permissions?

share|improve this question

Honestly, boot a live cd and grab a backup of the files you need. Then head to re-install town.... :(

You MIGHT be able to install over your broken version and only break a few [hundred] things...

share|improve this answer

Sounds like you've overly restricted a bunch of system directories. Before I tell you how to solve your immediate issue you should know that default permissions differ throughout and there's no simple way I can think of to recover this without backup recovery or some level of re-installation. The security and stability of the system may be seriously compromised.

  1. Boot from some sort of Linux Live CD/USB
  2. Mount your system partition.
  3. Ensure bin/* is still owned by root.
  4. Change bin/* permission to 755. Note: Permissions 755 makes the file readable and executable by all. I would certainly not do this in a directory like /etc or /var.
share|improve this answer

Your Answer


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.