LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-11-2012, 03:51 AM   #1
pastagage
LQ Newbie
 
Registered: Jan 2011
Location: Alps
Distribution: Debian 6.0.6
Posts: 6

Rep: Reputation: 0
Question [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

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

Last edited by pastagage; 10-17-2012 at 07:02 AM.
 
Old 10-11-2012, 04:28 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
Lightbulb

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.

Last edited by jv2112; 10-11-2012 at 04:32 AM. Reason: typo
 
Old 10-11-2012, 05:13 AM   #3
pastagage
LQ Newbie
 
Registered: Jan 2011
Location: Alps
Distribution: Debian 6.0.6
Posts: 6

Original Poster
Rep: Reputation: 0
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

Last edited by pastagage; 10-11-2012 at 05:23 AM.
 
Old 10-12-2012, 04:34 AM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

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

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
 
Old 10-15-2012, 09:18 AM   #5
pastagage
LQ Newbie
 
Registered: Jan 2011
Location: Alps
Distribution: Debian 6.0.6
Posts: 6

Original Poster
Rep: Reputation: 0
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 ++
 
Old 10-18-2012, 06:32 AM   #6
pastagage
LQ Newbie
 
Registered: Jan 2011
Location: Alps
Distribution: Debian 6.0.6
Posts: 6

Original Poster
Rep: Reputation: 0
Up!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rsync execution issue with crontab - Have given full path to rsync too!! Prabagaran Linux - Server 6 04-15-2011 01:39 AM
Smb.conf / testparm issue.. digitolx Linux - Server 1 06-15-2010 05:38 PM
SMB networking issue tomaine2002 Linux - Networking 1 06-05-2008 03:44 PM
SMB/network issue loda117 Linux - Software 3 06-02-2006 06:22 PM
SMB issue doralsoral Linux - Networking 0 09-09-2003 11:30 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration