rsync error: some files/attrs were not transferred

Solution Verified - Updated -

Issue

  •    Running the following rsync command with option  -X ( preserver extended attribute ) produces the following error.

                         root@test01> rsync -axHAX --delete /. /tmp/selinux/.
                         rsync: rsync_xal_set: lsetxattr("selinux","security.selinux") failed: Permission denied (13)
                         rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
    

Environment

  •   Red Hat Enterprise Linux
  •   Selinux Enabled

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.