Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I was wondering if there is a set of commands that you can run to reset file permissions to default. A bunch of directories/files got their permissions changed on my server due to me copying and pasting a shell script without looking closer into what it was actually doing.

share|improve this question
add comment

1 Answer

There's no way doing this except for resetting the packages contents rights.

You could try :

rpm --setperms {packagename}

But it wont probably affect all LSB directories.

share|improve this answer
    
You can find more info here serverfault.com/questions/40025/… –  wojciechz Aug 23 '12 at 15:44
    
I found this site: novell.com/communities/node/5877/… that seems like it should do the trick... is this correct? –  Joshua Terrill Aug 23 '12 at 15:54
    
I would not use it without previous verification because it's not supported by community and post is 4 years old. –  wojciechz Aug 23 '12 at 16:09
add comment

Your Answer

 
discard

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.