Article 6FAS1 Preserve ownership and file permissions on CIFS Share

Preserve ownership and file permissions on CIFS Share

by
hacktheworld
from LinuxQuestions.org on (#6FAS1)
Hi guys,

I'm dealing with a problem with a CIFS share and a rsync process.
CIFS is mounted in fstab:

//server/backup /backup cifs iocharset=utf8,rw,credentials=/etc/backup-credentials.txt,uid=1000,gid=1000,file_mode=0660,dir_mode=0770,user_xattr 0 0

Rsync command I launch is:

rsync -avp --delete /home/lab /backup

All user files under /home/user are owned by lab user but files in /backup are owned by uid=1000 and gid=1000 as defined in fstab.

I want to preserve ownership.
May be possible?

Thank you very much
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments