LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-08-2004, 11:50 PM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
reverse chmod/chown changes


is there anyway automatically reverse chmod/chown changes made?
there is few time i made chown and chmod that damages the files which process cant access it causing me to reformat my redhat9.

is there any guide that teaches files and folders that can be change its ownership and access permision and files and folders that should have spesifec ownership and permission

i had accidentally chmod -Rv a+rwx /usr
 
Old 02-09-2004, 12:16 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
No way that I know of other than manually if you've already committed the actions you want to change. But there's a fantastic script for being able to restore them if you run it *before* making the changes.

http://www.linuxquestions.org/questi...threadid=91333

So, yeah - pretty much a manual task of hoping you get it right this time, I'm afraid. But better luck next time.

Basically, though, no one but root should have write access to /usr. Directories, executables, some libraries - I dunno - that stuff should be executable. Most everything else in /usr can be world readable (I think).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chown & Chmod swatward Linux - Newbie 2 03-01-2005 12:57 PM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 02:49 PM
Arg!! chown /chmod Kanon Linux - Newbie 10 01-16-2005 03:05 PM
Log Chmod and Chown FernandoLozano Linux - Security 5 01-10-2005 09:01 AM
Understanding chmod, chown mikemrh9 Linux - Newbie 4 11-19-2004 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration