Please help,,,execute chmod –R o-r / by mistake as a root user.

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....


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-13-2004
Hugo van den Brand
 
Posts: n/a
Default Re: Please help,,,execute chmod -R o-r / by mistake as a root user.


"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?


Reply With Quote
  #2 (permalink)  
Old 01-13-2004
T
 
Posts: n/a
Default Please help,,,execute chmod –R o-r / by mistake as a root user.

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
Reply With Quote
  #3 (permalink)  
Old 01-13-2004
NeoSadist
 
Posts: n/a
Default Re: Please help,,,execute chmod ?R o-r / by mistake as a root user.

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.

Reply With Quote
  #4 (permalink)  
Old 01-13-2004
charly
 
Posts: n/a
Default Re: Please help,,,execute chmod -R o-r / by mistake as a root user.

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 :)

Reply With Quote
  #5 (permalink)  
Old 01-13-2004
Tim Haynes
 
Posts: n/a
Default Re: Please help,,,execute chmod -R o-r / by mistake as a root user.

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/
Reply With Quote
  #6 (permalink)  
Old 01-13-2004
Carl
 
Posts: n/a
Default Re: Please help,,,execute chmod –R o-r / by mistake as a root user.



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...

Reply With Quote
  #7 (permalink)  
Old 01-13-2004
Kevin D. Snodgrass
 
Posts: n/a
Default Re: Please help,,,execute chmod –R o-r / by mistake as a root user.

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/

Reply With Quote
  #8 (permalink)  
Old 01-13-2004
Tim Haynes
 
Posts: n/a
Default Re: Please help,,,execute chmod –R o-r / by mistake as a root user.

"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/
Reply With Quote
  #9 (permalink)  
Old 01-13-2004
Matt Gauthier
 
Posts: n/a
Default Re: Please help,,,execute chmod -R o-r / by mistake as a root user.

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>


Reply With Quote
  #10 (permalink)  
Old 01-13-2004
Tim Haynes
 
Posts: n/a
Default Re: Please help,,,execute chmod -R o-r / by mistake as a root user.

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/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0