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

Re: after rsync restore - cannot login



On Tue, 30 Dec 2008 15:10:33 -0700
Kevin Kempter <kevin kevinkempterllc com> wrote:

> Hi All;
> 
> I did a backup of a test Fedora 10 install as follows:
> 
> 1) installed Fedora 10 and applied no updates
> 
> 2) booted into single user mode and as root ran this:
> 
> rsync -av <dir> /stage/backup
> 
> I wrapped the above rsync command in a script where <dir> is replaced
> with the root (/) dir's I want backed up.  Basically everything
> except the following:
> 
> /proc
> /dev
> /sys
> /stage
> 
> 
> Then I rebooted, and ran a yum update, installed a new kernel, many
> packages, etc
> 
> 
> Then as a test I booted back into single user mode and as root ran
> this:
> 
> rsync -av --delete /stage/backup/<dir> /
> 
> again the above command was in a script where <dir> was replaced with
> the same list of root (/) dirs as I used for the backup
> 
> once complete I rebooted and now I cannot login, I get to a login
> screen but a login just takes me back to the login screen again.
> 
> I booted into single user mode, and ran init 3
> at the login prompt I tried to login as root and some text flashes by
> the screen too quickly to read however I did catch the phrase
> 'permission denied'
> 
> What have I done wrong ?

You need to use -X with rsync to preserve the selinux extended
attributes on files. You probibly also want -A for acls. 

Right now you should be able to touch /.relabel on the machine and
reboot and it should go through and fix all the selinux lables and
hopefully let you login. 

> 
> Thanks in advance...
> 

kevin

Attachment: signature.asc
Description: PGP signature


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