Rsync: failed to set permissions - problem with backup on NTFS

When I try to backup data on NTFS drive, I get:

rsync: failed to set permissions on "/mnt/Dane/_BACKUP/Projekty/.Skrzynka_istniejaca.png.MyhW3J": Operation not permitted (1)

I make backup with this parameters:

rsync -rluDEvi

How to fix this error?

By not using NTFS or any other non-Linux file system. They do not support permissions bits (and ownership by user:group).

or try to use luckybackup and learn how it gives the special instructions in rsync to backup on ntfs filesystem

,

That won’t help saving the linux perms on NTFS. One simply cannot make complete backups on NTFS, FAT, exFAT. For the exact reason Henk describes.

If I backup to NTFS or FAT, I use “tar” or similar archive program. The archive keeps the unix permissions. The non-unix file system doesn’t keep them.

That is of course a solution for a backup, but without the rsync features of keeping a mirror without to much overhead.

Documentation for ntfs-3g suggests something different. It is capable of storing Unix permissions as special ACE on NTFS as well as mapping Unix UID/GID to Windows SID (with corresponding ACE).

From original post it is not clear whether it is one off message or it happens for every file. If message only comes for one single file, the next obvious step is to look how this file differs from others.

Thank you for replies.
This warning is not in all files.
The end of the rsync:

2019/12/28 10:08:00 [4914] sent 471,053,926 bytes  received 19,535 bytes  2,043,702.65 bytes/sec

 2019/12/28 10:08:00 [4914] total size is 84,812,230,005  speedup is 180.04


I don’t need to save permissions. Owner and group is enough.

Maybe is something better then rsync?

Another log:

rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.20141020_175602.jpg.ctdhxo": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.20160814_165944.jpg.RIRuUn": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0064.jpg.5WWvIn": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0065.jpg.77zIXo": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0084.jpg.TwwH0p": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0089.jpg.ewPg1m": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0090.jpg.3pVNkn": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0091.jpg.IWz6dm": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0098.jpg.A6wfEm": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0169.JPG.Fjha6l": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0171.JPG.CqPLen": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0172 (1).jpg.Lx1Bml": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0172.JPG.nnz5Pm": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0174.JPG.GlEZpo": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0175 (1).jpg.294ugp": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0175.JPG.TB7JXl": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0191.JPG.hrpKzo": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0204.JPG.BnyDfp": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0212.JPG.5zgDam": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0221.JPG.b6n2mm": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0222.JPG.oTzoxp": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0223.JPG.D7UZTl": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0294.JPG.JIeAjn": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0501.JPG.1sbteo": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_0503.JPG.I0qqNp": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_1473.JPG.jFL8Hl": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_1474-2.JPG.igWcMp": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_1475.JPG.O7vkzn": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_1481.JPG.8c4kPm": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.DSC_1486.JPG.p9NP2n": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.IMG_20170615_113849.jpg.MINkWm": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.IMG_20180520_134930.jpg.xH5ZGm": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.IMG_20180526_143025.jpg.YJEYNp": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.MOV_0281.mp4.8fekln": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.mms_20150320.jpg.5BoEqp": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.mms_20150320_2.jpg.wGBiyo": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.mms_img-1414515238.jpg.CUBdKn": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.mms_img571354214.jpg.ZguBul": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.received_1344113292274617.mp4.1Jl2Fo": Operation not permitted (1)
rsync: failed to set permissions on "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/.received_1344159445603335.mp4.fLQYxl": Operation not permitted (1)

sent 3,567,591,534 bytes  received 411,501 bytes  6,309,466.02 bytes/sec
total size is 192,805,921,904  speedup is 54.04
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]

ls "/mnt/Dane/ZDJECIA/Z telefonu Krysi/Z Samsunga/" -l
razem 289940
-rwxrwxr-x 1 root users   1427161 12-29 14:34 20141020_175602.jpg
-rwxrwxr-x 1 root users   1608907 12-29 14:34 20160814_165944.jpg
-rwxrwxr-x 1 root users   1100768 12-29 14:34 DSC_0064.jpg
-rwxrwxr-x 1 root users   1189961 12-29 14:34 DSC_0065.jpg
-rwxrwxr-x 1 root users   1095262 12-29 14:34 DSC_0084.jpg
-rwxrwxr-x 1 root users    899713 12-29 14:34 DSC_0089.jpg
-rwxrwxr-x 1 root users   1082898 12-29 14:34 DSC_0090.jpg
-rwxrwxr-x 1 root users   1017192 12-29 14:34 DSC_0091.jpg
-rwxrwxr-x 1 root users    991427 12-29 14:34 DSC_0098.jpg
-rwxrwxr-x 1 root users   2816207 12-29 14:34 DSC_0169.JPG
-rwxrwxr-x 1 root users   1420429 12-29 14:34 DSC_0171.JPG
-rwxrwxr-x 1 root users   3091757 12-29 14:34 DSC_0172 (1).jpg
-rwxrwxr-x 1 root users   1423275 12-29 14:34 DSC_0172.JPG
-rwxrwxr-x 1 root users   1415754 12-29 14:34 DSC_0174.JPG
-rwxrwxr-x 1 root users   2623860 12-29 14:34 DSC_0175 (1).jpg
-rwxrwxr-x 1 root users   1313196 12-29 14:34 DSC_0175.JPG
-rwxrwxr-x 1 root users   2962247 12-29 14:34 DSC_0191.JPG
-rwxrwxr-x 1 root users   3257701 12-29 14:34 DSC_0204.JPG
-rwxrwxr-x 1 root users   3234180 12-29 14:34 DSC_0212.JPG
-rwxrwxr-x 1 root users   2898978 12-29 14:34 DSC_0221.JPG
-rwxrwxr-x 1 root users   2892625 12-29 14:34 DSC_0222.JPG
-rwxrwxr-x 1 root users   2873745 12-29 14:34 DSC_0223.JPG
-rwxrwxr-x 1 root users   3935928 12-29 14:34 DSC_0294.JPG
-rwxrwxr-x 1 root users   2121531 12-29 14:34 DSC_0501.JPG
-rwxrwxr-x 1 root users   3415939 12-29 14:34 DSC_0503.JPG
-rwxrwxr-x 1 root users   3714254 12-29 14:34 DSC_1473.JPG
-rwxrwxr-x 1 root users   4306005 12-29 14:34 DSC_1474-2.JPG
-rwxrwxr-x 1 root users   3139116 12-29 14:34 DSC_1475.JPG
-rwxrwxr-x 1 root users   3425043 12-29 14:34 DSC_1481.JPG
-rwxrwxr-x 1 root users   4195246 12-29 14:34 DSC_1486.JPG
-rwxrwxr-x 1 root users   4073147 12-29 14:34 IMG_20170615_113849.jpg
-rwxrwxr-x 1 root users   2345377 12-29 14:34 IMG_20180520_134930.jpg
-rwxrwxr-x 1 root users   3947600 12-29 14:34 IMG_20180526_143025.jpg
-rwxrwxr-x 1 root users     91655 12-29 14:34 mms_20150320_2.jpg
-rwxrwxr-x 1 root users     71814 12-29 14:34 mms_20150320.jpg
-rwxrwxr-x 1 root users    216047 12-29 14:34 mms_img-1414515238.jpg
-rwxrwxr-x 1 root users    240392 12-29 14:34 mms_img571354214.jpg
-rwxrwxr-x 1 root users 197812534 12-29 14:34 MOV_0281.mp4
-rwxrwxr-x 1 root users  11181287 12-29 14:34 received_1344113292274617.mp4
-rwxrwxr-x 1 root users   5953425 12-29 14:34 received_1344159445603335.mp4


I assume that those files that have by incident the same permissions as the fake permissions on the mounted NFTS file system do not generate error messages. Only those where rsync decided that they must be set to something different.

Like permissions, they are not part of an NTFS file system (but see @avidjaar’s post about some strange tricks that seem to be available). And btw, having ownner and group but not the permissions makes this a strange sort of security :frowning:

The better thing is to use rsync with Linux file systems on both sides. What is the reason that you want to use a non-Linux file system for a typical Unix/Linux way of doing things?

And for others to decide if there is something better then rsync for what you want, we need to know what you want. You only told us about a step that goes wrong (in your opinion), but never told us the goal you are trying to achive.
(see also: How To Ask Questions The Smart Way)

Personaly, my advice is to only use non-Linux file systems for exchanging files with non-Linux operating systems. Not for any other goal.

There is no need to post those. We all understand why the error messages and also why you see what you see in a listing of files on the NTFS file system. And it is explained already why it is as it is.

I have two systems on my laptop (OpenSuse and Windows 10). I want to have access to files from both system, so I decided to have NTFS for common files. I know that isn’t the best solution, but i don’t know a better solution.

I synchronize NFS share with NTFS disk. Maybe Samba would be better, but it’s slower.

When you only want to sync to Windows what is on Linux, just forget about those ownerships and permissions. They won’t be on NTFS and Windows will not use them anyhow. As long as you do not sync the other way around (from Windows to Linux) I see no problem, because you introduce then nothing from the Windows side.

So use your Linux files from a Linux file system. And use your copy on NTFS from your Windows system. And ignore the messages.