i remember zaid amireh once posted a solution for this
problem, do a search for "gotcha 4" and here's the
solution again for future reference.

btw faisal already started running through this
solution, so faisal let us know what happens.
---------------------------
Well, someone did `chown -R foo:bar /` and the system
went berserk,
how can you restore proper ownership on system files?

#dpkg --get-selections | cut -f 1 > packages

then in a file paste the following

#!/bin/bash
exec < "$1"
while read LINE; do
       apt-get install --reinstall --assume-yes $LINE
done

execute the file with the 'packages' file as an
argument, it will
reinstall every single package on the system thus
restoring the
ownership and the sticky bits too.

hope this helps some as most people suggest a
reinstall.

Zaid
-----------------------

--- Al-Faisal El-Dajani <[EMAIL PROTECTED]>
wrote:

Hey guys...

Hypothetical situation: say that somebody
"mistakenly" ran the following
command:
sudo find / -type d -exec chmod o-rwx "{}" \;

Is there a way to reverse the situation? reset
permissions to what they
should be?

I must emphasis that this is only a hypothetical
situation, i did NOT just
run that command, i am not hiding behind my desk
weeping, and most
importantly i am not panicking in any sort!! PLZ
HELP!! :)
--
Al-Faisal El-Dajani
P.O Box: 140056
11814 Amman, Jordan








____________________________________________________________________________________
TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Jolug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups-beta.google.com/group/Jolug?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

رد على