rights messed up after moving installation

Reindl Harald h.reindl at thelounge.net
Mon Nov 5 22:42:17 UTC 2012



Am 05.11.2012 23:19, schrieb lee:
> Daniel J Walsh <dwalsh at redhat.com> writes:
> 
>> On 11/05/2012 05:07 PM, lee wrote:
>>> Steven Stern <subscribed-lists at sterndata.com> writes:
>>>
>>>> From the man page:
>>>>
>>>> -a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)
>>>>
>>>> So, you need to use "--archive -X" to transfer selinux context info as 
>>>> well as the other attributes.
>>>
>>> Ugh ... darn ... What do I do now?  Files on /var have been modified in the
>>> meantime; I could run rsync on / again.  That should be possible while it's
>>> mounted.
>>>
>>> What will rsync do?  Only change the info because the file content hasn't
>>> changed?
>>>
>>> Isn't there a better way to fix this?
>>>
>>
>> I have not got the full information, but running restorecon on the data will
>> probably fix the file contexts.
> 
> The context is that I moved the root file system and /var from one disk
> to another with insufficient options to rsync.  I have already run
> restorecon which enabled me to log in again.  Something is still wrong
> because pulseaudio doesn't run anymore and the "users" command produces
> no output.
> 
> What if I run "yum reinstall *"?  Re-installing all packages should fix
> the rights, shouldn't it?

possibly yes

i did this shot time ago after a really ugly crash resulting
in emergency mode and manually fixing the rootfs with say
"yes" to anything fsck suggested

hint: yum reinstall \*
always escape * in commands!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20121105/165e741f/attachment.sig>


More information about the users mailing list