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

Reply via email to