[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fixing file system privileges



On Thu, May 09, 2002 at 05:35:58PM +0200, martin f krafft wrote:
> also sprach Kovacs Istvan <kofa@alarmix.net> [2002.05.09.1621 +0200]:
> > I screwed up file system privileges, issuing a chmod -R in the wrong (/
> > -- where else?) directory :-( Is there a way to fix this?
> 
> yes, if you have a tripwire (or other integrity checker) database
> around... otherwise only manually. i always have `ls -lR /` outputs
> stored in /root for a couple of weeks for that case...
> 
> but: why not save your /etc, /home, and /var, dpkg --get-selections
> into a file, reinstall, and then one after the other restore your
> settings? that might be faster...

 You can do something like
apt-get install --reinstall $(dpgk --get-selections|cut -f1)

You may have to grep out some packages that aren't available anymore from
your get-selections output, but that should get most stuff.



-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@llama.nslug. , ns.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BCE


-- 
To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: