LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2015, 02:48 AM   #1
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Rep: Reputation: 181Reputation: 181
Smile Rsync operations not permitted


hello guys, just want to ask I have files on the server running SUSE 11 and i rsync to My WD Cloud via NFS.

but i notice some it shows some error like "This operation is not permitted"

I had used rsync -av parameters.

But when I used rsync -rltuv parameters it seems to work fine.

Why rsync -av parameter is used there are errors even though I set on WD My Cloud shared folder as the permissions as 777?

Thanks for any input.
 
Old 04-22-2015, 02:52 AM   #2
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 514

Rep: Reputation: 48
Can you show exactly what errors you're talking about?
 
Old 04-22-2015, 01:56 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,957

Rep: Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267
It would apparently be due to one of the "-p", "-g", or "-o" options, which are included by "-a" but are not in your "-rltuv" options that do work. If you are not running rsync as root, then it's probably due to "-o" trying to preserve an owner that is not you or "-g" trying to preserve a group to which you do not belong.

If the NFS mount does not include the "no_root_squash" option, then root permissions for rsync will not propagate to the server (you will get the "nfsnobody" ID).

Last edited by rknichols; 04-22-2015 at 01:59 PM.
 
Old 04-23-2015, 06:04 AM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Original Poster
Rep: Reputation: 181Reputation: 181
hi rknichols, this is the /etc/exports contents.

Quote:
/nfs *(rw,all_squash,sync,no_subtree_check,insecure,crossmnt,anonuid=65534,anongid=1000)
"no_root_squash" option what does it do?

Thank you.
 
Old 04-23-2015, 10:11 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,957

Rep: Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267
Quote:
Originally Posted by JJJCR View Post
"no_root_squash" option what does it do?
In the presence of "all_squash" it won't do anything. "Squashing" refers to the mapping of IDs from the client to the anonuid and anongid (here, 65534 and 1000) on the server. By default, the root UID gets squashed and non-root UIDs are preserved. The "no_root_squash" would prevent that and allow full root permissions to propagate to the server. But, "all_squash" squashes all UIDs/GIDs to 65534/1000, and rsync will not be able to preserve the UID or GID of the source.
 
1 members found this post helpful.
Old 04-24-2015, 02:32 AM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,102

Original Poster
Rep: Reputation: 181Reputation: 181
Thanks rknichols...

When I use rsync for whatever reason it seems that rsync goes into loop copying..

It copies again the files from the start and it would just never end.

I press Ctrl+c to terminate rsync, now I'm using tar to copy the directory.

I'm copying from Netgear NAS to WD My Cloud.

I will update this post, if tar is okay.
 
  


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: failed to set times on "/data/directoryname/.": Operation not permitted (1) rjo98 Linux - Newbie 2 04-23-2014 06:14 PM
rsync giving ld.so.1: rsync: fatal: libiconv.so.2: open failed: error SunilEA Linux - Newbie 1 01-10-2014 02:24 PM
[SOLVED] rsync execution issue with crontab - Have given full path to rsync too!! Prabagaran Linux - Server 6 04-15-2011 02:39 AM
rsync: how to copy file, "Operation not permitted" nugroho2 Linux - Laptop and Netbook 3 04-21-2010 08:57 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 05:08 AM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration