View previous topic :: View next topic |
Author |
Message |
smmot n00b
Joined: 03 Dec 2008 Posts: 1
|
Posted: Wed Dec 03, 2008 8:12 pm Post subject: Fixing permissions on system |
|
|
Hello,
One of my users did a sudo chmod -R 755 /
You can now imagine how the system was left.
Is there any way to revocer from this? A permission recovery script?
If the only way is to go manually fixing permissions, where can I find the default permissions for a gnome installation? |
|
Back to top |
|
|
coolsnowmen Veteran
Joined: 30 Jun 2004 Posts: 1479 Location: No.VA
|
Posted: Thu Dec 04, 2008 2:23 am Post subject: |
|
|
You could use the find and stat commands to make a complete permissions list on a known good computer and chmod each file individually. The home folders should be ok. As long as the broken computer has only a subset of the file permissions the knowngood computer has, it should work.
You would probably then use a boot disc on the broken computer and load this script and just use awk or something like chmod $premissions /mnt/gentoo/$file, and execute it.
Does that interest you? _________________ emerge: there are no ebuilds to satisfy "moo" |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Thu Dec 04, 2008 3:57 am Post subject: |
|
|
Welcome to the forums. Please review our Guidelines, in particular the advice to search before posting.
You're not the first to make this mistake and various corrective actions have been discussed before.
Moved from Other Things Gentoo to Duplicate Threads. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
|