Zaid has posted something for debian systems before, its almost the same
case
On 11/30/05, Zaid Amireh <[EMAIL PROTECTED]> wrote:
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
--
---------------------------
Netiquette -> http://www.dtcc.edu/cs/rfc1855.html
Netiquette Nazi ->
http://redwing.hutman.net/%7Emreed/warriorshtm/netiquettenazi.htm
---------------------------
_______________________________________________
General mailing list
[email protected]
http://mail.jolug.org/mailman/listinfo/general_jolug.org
in case the system had some other packages (for example compiling them on
the system), these packages perhaps might not work properly, so the user
should see what other packages he had installed and try to fix them if he
can or reinstall them once again.
On 1/16/07, 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
>
--
Ala'a A. Ibrahim
http://alaa-ibrahim.com/guru
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---