chmod root 777 recursive

Asked by Thierry GAONA - Axelor

Hello,

on french keyboard layout, the . and / caracters are side by side.

So that, I just made a "chmod -R 777 /" instead of a "chmod -R 777 .".

You guess the consequences...

I'm wondering two things now:
- How can I revert this miserable action?
- Even if an administrator has all responsibility using root user, would it be possible in some next version of Ubuntu having at least a message asking if we are sure to run such command which have the power to destroy the whole system...?

Thanks for the answer...

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You could try:

sudo chmod -R 760 /

The whole point of sudo etc is that the user is given power, and with great power comes great responsibility. It will take a lot of effort to code this sort of thing in. A good rule of thumb is never use 777 ANYWHERE as it is hugely unsecure. It gives anyone at all ful access to your system so malicious code or java applets embedded in sites can affect the files with 7 as the last value (hence why 750 is good)

I suggest you research into Linux file permissions a little.

Can you help with this problem?

Provide an answer of your own, or ask Thierry GAONA - Axelor for more information if necessary.

To post a message you must log in.