Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fixing permissions on system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
smmot
n00b
n00b


Joined: 03 Dec 2008
Posts: 1

PostPosted: Wed Dec 03, 2008 8:12 pm    Post subject: Fixing permissions on system Reply with quote

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
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Thu Dec 04, 2008 2:23 am    Post subject: Reply with quote

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
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2671
Location: here, there or in transit

PostPosted: Thu Dec 04, 2008 3:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum