Re: Best way of restoring /etc from backups after fresh install?




--- 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
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







--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: master.passwd -- securing
    ... use the `passwd` command to set a password for root ... Find a cheaper internet access deal - choose one to suit you. ... To unsubscribe, ...
    (freebsd-questions)
  • RE: Cant reboot after update
    ... Kernel panic-not syncing: VFS: unable to mount root fs on ... server in our server room just after I started a normal reboot, ... etch host running on a Dell PowerEdge 2450 server. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Unable to su as a user, I get: Cannot execute /bin/bash: Permission denied
    ... It'll be executed by the user, not root. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Also to be a right prat, chmod a-x `which chmod` (don't do it, but i've ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (Debian-User)
  • Re: Unable to su as a user, I get: Cannot execute /bin/bash: Permission denied
    ... sorry..i lost you on that...you think that someone changed the permissions ... It'll be executed by the user, not root. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Also to be a right prat, chmod a-x `which chmod` (don't do it, but i've ...
    (Debian-User)
  • RE: cron.daily stopped working
    ... expiration with command "passwd -f root " and then setup a test root ... cron. ... job in /etc/cron.daily just stopped working. ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)