-   Linux - Server (
-   -   [UNsolved]Using RSync with SMB issue (

pastagage 10-11-2012 04:51 AM

[UNsolved]Using RSync with SMB issue
Hi there,

I finally managed to rsync files to my Iomega NAS, but I still have some errors despite the files being actually transferred :rolleyes:

I added this line in my fstab:

// /home/antoine/AMount/MyNAS cifs credentials=/etc/PwdDir/smbpasswd_MyNAS,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=antoine rw 0 0

with uid=antoine being my local username.

Then I launch rsync with:

rsync -av /home/antoine/_Sandbox_/MS/ /home/antoine/AMount/MyNAS/BackUp/

The files are transferred correctly but I got these annoying errors:

antoine@Skystreak:/etc$ rsync -av /home/antoine/_Sandbox_/MS/ /home/antoine/AMount/MyNAS/BackUp/
sending incremental file list
rsync: chgrp "/home/antoine/AMount/MyNAS/BackUp/." failed: Permission denied (13)
rsync: chgrp "/home/antoine/AMount/MyNAS/BackUp/.features_coord_USDA257.txt.XzSwFn" failed: Permission denied (13)
rsync: chgrp "/home/antoine/AMount/MyNAS/BackUp/.gms.log.CD0GqC" failed: Permission denied (13)
rsync: chgrp "/home/antoine/AMount/MyNAS/BackUp/.maker_bopts.ctl.ef9YdR" failed: Permission denied (13)

sent 576383 bytes received 72 bytes 384303.33 bytes/sec
total size is 576059 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1060) [sender=3.0.7]

Any help will be appreciated .


jv2112 10-11-2012 05:28 AM

I am reading this as the files were allready on your back up medium.

You could try


sudo chown -R antoine /path/to/nas ( If you need the files )


rm File_throwing_errors ( If they have no value )

Then run the rsync operation again.

pastagage 10-11-2012 06:13 AM

Thanks, but the files were not on the NAS before.

Actually, I wonder if that's not a kind of user conflict between these 2 users:

antoine @ NAS


antoine @ local

The files I copied to the NAS are write-protected and belong to user with uid 1005 (??), while the uid of antoine@local is uid 1000.... Getting really confused as I have no idea who is uid=1005, didnt find anything in /etc/passwd

jv2112 10-12-2012 05:34 AM

The UID # would indicate it is an actual user and not a system account.... strange :scratch:

I assume nobody else has acces to the NAS, correct ?

You could write a little script to monitor.


#! /bin/bash

while  [1]
fuser -u /path/to/nas >> log


pastagage 10-15-2012 10:18 AM

Thanks jv for your suggestion.

There are other users on the NAS.

I checked and 1005 is actually my UID on the NAS (antoine@NAS).

I found a similar issue on a website, suggesting to add noperm to the fstab line but doesn't work better...

Any idea anyone ?

Cheers ++

pastagage 10-18-2012 07:32 AM


All times are GMT -5. The time now is 03:39 PM.