LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-06-2010, 09:57 PM   #1
Insodus
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
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04
Posts: 1,260

Rep: Reputation: 147Reputation: 147
Debian Hardy? "Hardy" is Ubuntu, not Debian.
 
Old 05-06-2010, 10:35 PM   #3
evo2
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:
Code:
sudo apt-get install --reinstall `dpkg -l | grep ^ii | awk '{ print $2 }'`
Evo2.
 
  


Reply


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


All times are GMT -5. The time now is 05:27 AM.

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