LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Resetting ownership (https://www.linuxquestions.org/questions/linux-newbie-8/resetting-ownership-806405/)

Insodus 05-06-2010 08:57 PM

Resetting ownership
 
I accidentally chowned my whole filesystem to nobody:nogroup.

Stupid, I know.

I'm wondering if apt keeps a copy of the perms it set during installs like RPM does?

If not, is there any other way to restore the perms easily?

If not, does anyone have a quick screenshot of their root level perms on Debian Hardy? I can at least start with a chown -R of the top level dirs and see how close that gets me.

mark_alfred 05-06-2010 09:12 PM

Debian Hardy? "Hardy" is Ubuntu, not Debian.

evo2 05-06-2010 09:35 PM

Reinstalling the packages should fix most of the file ownership problems.

Something like the following could work:
Code:

sudo apt-get install --reinstall `dpkg -l | grep ^ii | awk '{ print $2 }'`
Evo2.


All times are GMT -5. The time now is 12:29 PM.