rsync unable to sync suid files

Rajarajan Rajamani rajarajan at comcast.net
Fri Sep 30 07:06:45 PDT 2005


I am running Release 5.4 with 2 disks and am using rsync to sync between the
two. On installing the second disk I used dump/restore to mirror them and
am since using rsync for incremental changes.

However I have a problem that rsync is unable to copy some files
and I suspect it is has something to do with the suid files.

Am I missing some switch to rsync ?

This is the output ----
# rsync --archive --times --verbose --delete --links --hard-links /usr/ /backup/usr
building file list ... done
bin/chfn
bin/crontab
bin/login
bin/opieinfo
bin/opiepasswd
bin/passwd
bin/rlogin
bin/rsh
bin/su
lib/libc_r.so.5
lib/libpthread.so.1
lib/libthr.so.1
rsync: rename "/backup/usr/bin/.chfn.n9bmTM" -> "bin/chfn": Operation not permitted (1)
rsync: rename "/backup/usr/bin/.crontab.2cRdng" -> "bin/crontab": Operation not permitted (1)
bin/chpass
bin/chsh
bin/ypchfn
bin/ypchpass
bin/ypchsh
rsync: rename "/backup/usr/bin/.login.afaGPu" -> "bin/login": Operation not permitted (1)
rsync: rename "/backup/usr/bin/.opieinfo.khGnuB" -> "bin/opieinfo": Operation not permitted (1)
rsync: rename "/backup/usr/bin/.opiepasswd.IUIwr4" -> "bin/opiepasswd": Operation not permitted (1)
rsync: rename "/backup/usr/bin/.passwd.DZeNlh" -> "bin/passwd": Operation not permitted (1)
sbin/sliplogin
bin/yppasswd
rsync: rename "/backup/usr/bin/.rlogin.NQALJo" -> "bin/rlogin": Operation not permitted (1)
rsync: rename "/backup/usr/bin/.rsh.a8Y0ck" -> "bin/rsh": Operation not permitted (1)
rsync: rename "/backup/usr/bin/.su.REqmlZ" -> "bin/su": Operation not permitted (1)
rsync: rename "/backup/usr/lib/.libc_r.so.5.5qXxhc" -> "lib/libc_r.so.5": Operation not permitted (1)
rsync: rename "/backup/usr/lib/.libpthread.so.1.rdy2Z7" -> "lib/libpthread.so.1": Operation not permitted (1)
rsync: rename "/backup/usr/lib/.libthr.so.1.hxrWjS" -> "lib/libthr.so.1": Operation not permitted (1)
rsync: rename "/backup/usr/sbin/.sliplogin.ILQ9G3" -> "sbin/sliplogin": Operation not permitted (1)

Any hints ?

Regards,

RR


More information about the freebsd-questions mailing list