LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-19-2005, 09:20 PM   #1
achallenger1
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian (and others)
Posts: 19

Rep: Reputation: 0
"Repair permissions" - installed .deb package


Hi,
Is there a "Repair permissions" feature (like on MacOS X, for those who have used it) for Debian packages, through apt/dpkg/(etc.)?

I have two Linux (ReiserFS) partitions in my system, a large one for a stable distro and a small one for testing other random distros. I recently tried copying a Debian install from the testing partition to the large partition. Somehow, in the process, I lost all non-rwx permissions (suid, sticky, etc). This broke a bunch of things; I still haven't gotten some (ie. xscreensaver screen lock) working again. Is there a way to just restore all permissions to their defaults systemwide?
 
Old 08-19-2005, 09:45 PM   #2
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
nope, because there is no real 'default' set of permissions. I think you have to completely reinstall. I've had similar system-wide permissions problems, and have always been told to reinstall
 
Old 08-21-2005, 01:01 PM   #3
achallenger1
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian (and others)
Posts: 19

Original Poster
Rep: Reputation: 0
If .deb packages don't contain "default" permissions, then how do apt/dpkg figure out what permissions to give files when they're being installed? All I want to do is return the permissions to what they would be immediately after an install. The information is there somewhere; the question is, is there a nice way to artificially re-apply it?

Is there a way to extract the contents of a .deb file to a subdirectory (ie. /home/me/temp) without actually installing it? If I could do this, I could pull the permissions from the extracted files and apply them to their actually-installed counterparts. This would be really messy, but it would work.

In any case, I seem to have gotten most things working again, through the magic of Google , so I'll likely stick with this install unless/until something really important breaks, and I can't fix it.
 
Old 08-21-2005, 03:49 PM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
I'm not exactly sure how the permissions are set up. But I believe that once the permissions are changed(for whatever reason) even a reinstall won't modify them. I think it's due to the whole 'control every part of your machine' theory
 
  


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
"fsck failed. Please repair manually and reboot" after chaning non-system partition undeaf SUSE / openSUSE 17 02-07-2014 12:18 PM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
where is the "enter root password or Contrl-D to continue" after FS repair at boot jg167 Red Hat 0 11-17-2004 01:20 AM
Software to download "deb" files and dependecies, for Windows, is there? geraldomanaus Linux - Software 0 08-08-2003 02:43 PM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:22 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