[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: File System Permissions Repair



* R. W. Rodolico schrieb am 14.12.05 um 03:15 Uhr:
> Did something just now that I haven't done since the mid-90's. As
> root, executed the command
> 
> find / -type d -exec chmod 777 \{\} \;
> 
> You may spend whatever effort you want telling me what I already
> know; I'm stupid sometimes.
> 
> Big question. Before I go write a script to repair what I messed up,
> is there a script somewhere that checks and repairs the file
> permissions under Debian. I know Apple has one for OSX, but haven't
> seen anything for "real linux"

Hi Rod,

One solution may be to reinstall every package.

Something like:

dpkg --get-selections | grep -v 'deinstall$' | awk '{ print $1; }' \
| xargs -n1 aptitude reinstall "$pkg"

-Marc
-- 
-------------------------------------------
Take back the Net! http://www.anti-dmca.org
-------------------------------------------



Reply to: