LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 08: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, 09:12 PM   #2
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Debian Hardy? "Hardy" is Ubuntu, not Debian.
 
Old 05-06-2010, 09:35 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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



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 05:08 AM
/dev audio files ownership not resetting shingquak Linux - Distributions 0 09-01-2009 02:34 PM
resetting eth0 robbiest Linux - Newbie 2 11-28-2005 09:50 AM
Permissions resetting brinkster Mandriva 1 12-06-2004 06:54 AM
Resetting up LILO jstrain Mandriva 1 02-06-2004 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration