Re: Best way of restoring /etc from backups after fresh install?
--- On Sat, 6/6/09, Andrei Popescu <andreimpopescu@gmail.com> 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
> doable.
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
1000
$ id -g
1000
$ touch writeable.txt
$ logout
# vipw # as root, change uid and gid of your user, then login again as user
$ id -u
1001
$ id -g
1001
$ 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.
Thanks,
Laurentiu
Reply to: