Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-06-2010, 09:57 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 5

Rep: Reputation: 0
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.
Old 05-06-2010, 10:12 PM   #2
Senior Member
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 9
Posts: 1,327

Rep: Reputation: 154Reputation: 154
Debian Hardy? "Hardy" is Ubuntu, not Debian.
Old 05-06-2010, 10:35 PM   #3
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Reinstalling the packages should fix most of the file ownership problems.

Something like the following could work:
sudo apt-get install --reinstall `dpkg -l | grep ^ii | awk '{ print $2 }'`


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IP is resetting after reboot jithuc83 Linux - Networking 4 02-23-2010 06:08 AM
/dev audio files ownership not resetting shingquak Linux - Distributions 0 09-01-2009 03:34 PM
resetting eth0 robbiest Linux - Newbie 2 11-28-2005 10:50 AM
Permissions resetting brinkster Mandriva 1 12-06-2004 07:54 AM
Resetting up LILO jstrain Mandriva 1 02-06-2004 06:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration