Re: The results of sudo chmod 777 /.*
0
Quote:
Originally Posted by
sisco311
Try to boot in recovery mode and restore the permissions:
Code:
chmod 0755 /
chmod 0755 /*
chmod 1777 /tmp
chmod 0750 /root
chmod 0700 /lost+found
If you can boot in recovery mode, then boot a liveCD, mount the root partition and restore the permissions.
sisco311,
It seems that ubuntu works exactly as before after I changed the root permission according to your advice in the recovery mode (is there anythings else I need to do now to be sure ubuntu is fully restored?).
So thank you, and thanks all the other for trying to help (and I also want to thank god I was not listening to their advice ;))
What other dangers should I be aware of in this respect, and does ubuntu have any option of restoring itself (In my case, I must sudo many times in different ways, and it is impossible not to make simple misprints sometimes)
Re: The results of sudo chmod 777 /.*
LOL, this is why you always get a second (or sometimes, sixth) opinion.
I think you should be okay now, since you essentially undid what you did in the first place and just set the permissions back. Just watch for anything unusual, and check if permissions are the problem if something else breaks.
Re: The results of sudo chmod 777 /.*
Uhm, I did this stupid thing also mistakenly...
Should Ubuntu to make a confirm messange for only the input arg '/'?
Re: The results of sudo chmod 777 /.*
Quote:
Originally Posted by
danger89
Uhm, I did this stupid thing also mistakenly...
Should Ubuntu to make a confirm messange for only the input arg '/'?
Well, there are two problems with what you and the original poster did. First of all, if you own the directory, you shouldn't use sudo. Just doing chmod without sudo would have worked just fine.
Second of all, there is no reason to run
You can run
and it will give you the exact same results, but there is practically no chance that you will accidentally change your root directory's permissions.
Putting a warning message might not really hurt anything, but there are a million commands that someone can run to screw up their system, and it would be difficult and annoying to have confirmation messages for them all.
- Derrick