LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   [UNsolved]Using RSync with SMB issue (http://www.linuxquestions.org/questions/linux-server-73/%5Bunsolved%5Dusing-rsync-with-smb-issue-4175431627/)

pastagage 10-11-2012 03: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:

//10.11.12.250/antoine /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)
features.txt
gms.log
maker_bopts.ctl
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 .

Antoine

jv2112 10-11-2012 04:28 AM

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

You could try

Code:


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

or

rm File_throwing_errors ( If they have no value )

Then run the rsync operation again.

pastagage 10-11-2012 05: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

and

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 04: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.


Code:


#! /bin/bash

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

:scratch:

pastagage 10-15-2012 09: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 06:32 AM

Up!


All times are GMT -5. The time now is 01:49 AM.