Glam Prestige Journal

Bright entertainment trends with youth appeal.

I have been on the internet searching for my problem. I use rsync to copy files from my ubuntu 20.04 desktop to NAS Synology DS218+. It worked fine with ubuntu 18.04.

I was able to reproduce the error manually on the terminal, so that makes it easy to tell you the problem. Normally my backup runs in the background via a cron job.

The Synology share is mounted as follows:

///backup /mnt/cifs cifs credentials=,vers=1.0,iocharset=utf8,sec=ntlm 0 0

And works.

Now the problem

rsync -av ~/tmp /mnt/cifs

option -a should preserve the user name and group also, my files on the ubuntu desktop are of my username:my usergroup. The error log shows following error:

rsync: chgrp "/mnt/cifs/tmp" failed: Operation not permitted (1)

The directory tmp is created on the NAS anyhow. The user name now is 1026 (not my user name) of the user group users (initially not assigned to my user name).

Question How can I really preserve username and usergroup of the files. On the NAS I use the same user name as for ubuntu and this user has read write access to the share.

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy