Re: Best way of restoring /etc from backups after fresh install?
- From: Laurentiu Pancescu <plaur_27@xxxxxxxx>
- Date: Sat, 6 Jun 2009 10:45:02 +0000 (GMT)
--- On Sat, 6/6/09, Andrei Popescu <andreimpopescu@xxxxxxxxx> wrote:
That's not what I meant. Lock directories are not located
in /etc but in
/var AFAIK, so restoring /etc from backup should be
Oh, restoring /etc worked - all files were written correctly by rdiff-backup. The problem is the side effects you get in other parts of the filesystem (untouched files, owned by the now-wrong uids). Here's an example of what I mean:
$ id -u
$ id -g
$ touch writeable.txt
# vipw # as root, change uid and gid of your user, then login again as user
$ id -u
$ id -g
$ echo "cannot append" >> /home/$USER/writeable.txt
-bash: writeable.txt: Permission denied
Well, no big deal... chown -R fixes such problems quickly, it's just that I can't be sure I found all of them, perhaps I missed something in the logs. That's why I'd like a fully automated, reliable method of reinstalling without human intervention. Or maybe the install scripts for ntp and logcheck are buggy... I'll see that when I reinstall with etckeeper active later today.
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Prev by Date: Networking suddenly don't works (cdc_ether)
- Next by Date: Re: : up-to-date Sid, Need help with xorg.conf
- Previous by thread: Re: Best way of restoring /etc from backups after fresh install?
- Next by thread: Re: Re: Best way of restoring /etc from backups after fresh install?