This is a discussion on Please help,,,execute chmod –R o-r / by mistake as a root user. within the Linux Security forums, part of the System Security and Security Related category; "T" <fire_fly@pacific.net.sg> schreef in bericht news:pan.2004.01.13.15.22.06....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
"T" <fire_fly@pacific.net.sg> schreef in bericht news:pan.2004.01.13.15.22.06.933000@pacific.net.sg ... > Hi > I executed chmod -R o-r / by mistake as a root user. > Are there any script to restore to those affected files to their > default permission ? > Please help, > > Many thanks in advance. > T Where does the capital -R stand for? |
|
|||
|
T wrote:
> Hi > I executed chmod -R o-r / by mistake as a root user. > Are there any script to restore to those affected files to their > default permission ? > Please help, > > Many thanks in advance. > T uh, "chmod -r o+r /" ? -- Early to bed and early to rise and you'll be groggy when everyone else is wide awake. |
|
|||
|
I did it a year or so ago :)
and people on the linux group had a good laugh :) "do not act as root in vain :)" they told me :) Got no other choice than reinstall the OS. Save the home dir and etc/*.conf, database files before (that is whole backup), and reinstall... by the way : thank you, I feel less lonely now in my blunder :) Cheers and good luck ! PS : look for archives in Google but as far as I know, no hope (if you find something though, post it, It might be useful :) |
|
|||
|
charly <spam@yahoo.fr> writes without citation:
> I did it a year or so ago :) Congratulations > and people on the linux group had a good laugh :) I'm sure we would ;) > "do not act as root in vain :)" they told me :) Oh, that's what you were talking about... > Got no other choice than reinstall the OS. Nah, thass' balls. Should be easy to find a list of all packages you had installed (`rpm -qa' or `dpkg --list-packages' or `epm -qa' or whatever takes your fancy), find the original RPMs/debs/whatevers for them on your install CDs or elsewhere on the 'Net, and reinstall them on top of themselves. Only thing I'd suggest is you back up /etc before doing so, in case a config-file manages to get overridden. ~Tim -- There's a shrine on the Assynt hillside |piglet@stirfried.vegetable.org.uk Made of earth and salt and rain |http://spodzone.org.uk/ |
|
|||
|
T wrote: > Hi > I executed chmod -R o-r / by mistake as a root user. > Are there any script to restore to those affected files to their > default permission ? > Please help, > > Many thanks in advance. > T what are you complaining about? This weekend I executed in a script I was working on rm -rf $xyz/* and the script was bad so $xyz was undefined... |
|
|||
|
T wrote:
> Hi > I executed chmod -R o-r / by mistake as a root user. > Are there any script to restore to those affected files to their > default permission ? No. You just learned two valuable lessons. Never play around while logged in as root and don't use the recursive flag unless you really know what you are doing. -- Kevin D. Snodgrass Help our soldiers in the field: http://www.operationac.org/ Help our soldiers in the hospital: http://www.woundedwarriorhospitalfund.org/ |
|
|||
|
"Kevin D. Snodgrass" <nobody@spamcop.net> writes:
> T wrote: > >> I executed chmod -R o-r / by mistake as a root user. Are there any >> script to restore to those affected files to their >> default permission ? > > No. Actually, there might well be, either on Mandrake (possibly) or SuSE (very likely). I know both have various levels of BOFHism for messing around with file-permissions, so if you find the scripts that kick these things off and run them, you might be a lot closer to having something working. > You just learned two valuable lessons. Never play around while logged in > as root and don't use the recursive flag unless you really know what you > are doing. ~Tim -- Roobarb and Custard let fly |piglet@stirfried.vegetable.org.uk with their secret weapon. |http://spodzone.org.uk/cesspit/ |
|
|||
|
On Tue, 13 Jan 2004 15:50:57 +0000, Tim Haynes wrote:
> > Should be easy to find a list of all packages you had installed (`rpm -qa' > or `dpkg --list-packages' or `epm -qa' or whatever takes your fancy), find > the original RPMs/debs/whatevers for them on your install CDs or elsewhere > on the 'Net, and reinstall them on top of themselves. Only thing I'd > suggest is you back up /etc before doing so, in case a config-file manages > to get overridden. rpm --setperms -a -- Matt Gauthier <elleron @ attbi.com> |
|
|||
|
Matt Gauthier <elleron@yahoo.com> writes:
> rpm --setperms -a Wahey, another thing learnt. Ta :) ~Tim -- It's enough that I can see the morning |piglet@stirfried.vegetable.org.uk In miracles much more than I can say |http://spodzone.org.uk/ |