Hello, Can someone tell me what the problem is here. I am doing an rsync on a sendmail spool directory to a folder that is a samba mount. Why is rsync trying to change owner? Does it have to? I tried manually changing owner (as root) on a file that is sitting on the samba mount and I got the same operation not permitted error. Does anybody know why this is? Or do I need to ask in a samba mailling list. Here is the error: chown var/spool/mail/********@*******.com : Operation not permitted chown var/spool/mail/********@*******.com : Operation not permitted chown var/spool/mail/********@*******.com : Operation not permitted chown var/spool/mail/********@*******.com : Operation not permitted Thanks, Max
How do you have the destination folder mounted? Is it mounted via SMBFS, via NFS, or is it a local folder that just also happens to be shared out via Samba? If it's mounted via SMBFS and you're authenticating as root when you mount it, rsync will think that you have root privileges on the folder and will therefore attempt to duplicate local file ownership conditions at the remote end. Very likely (hopefully, even) the samba system / windows system on the other end of the mount will NOT actually be granting root privileges to any samba/windows user named "root" - mine don't even acknowledge the existence of anyone going by "root". Hope that helped. Jim Salter JRS System Solutions ----- Original Message ----- From: "Max Kipness" <mkipness@geniant.com> To: <rsync@lists.samba.org> Sent: Tuesday, September 09, 2003 9:18 AM Subject: Operation not permitted? Hello, Can someone tell me what the problem is here. I am doing an rsync on a sendmail spool directory to a folder that is a samba mount. Why is rsync trying to change owner? Does it have to? I tried manually changing owner (as root) on a file that is sitting on the samba mount and I got the same operation not permitted error. Does anybody know why this is? Or do I need to ask in a samba mailling list. Here is the error: chown var/spool/mail/********@*******.com : Operation not permitted chown var/spool/mail/********@*******.com : Operation not permitted chown var/spool/mail/********@*******.com : Operation not permitted chown var/spool/mail/********@*******.com : Operation not permitted Thanks, Max -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Just a guess, as I'm a Samba newbie, but if you're trying to *write* to the Samba mount, then the Samba server needs to give *write* permissions to that filesystem. On Red Hat Linux, this is typically done in /etc/samba/smb.conf find the correct share, and look for the 'writable' option. After making changes, I think you need to restart samba. Not sure why rsync does a chown. HTH. -- Hardy Merrill Red Hat, Inc. Max Kipness [mkipness@geniant.com] wrote:> > Hello, > > Can someone tell me what the problem is here. I am doing an rsync on a > sendmail spool directory to a folder that is a samba mount. Why is rsync > trying to change owner? Does it have to? > > I tried manually changing owner (as root) on a file that is sitting on > the samba mount and I got the same operation not permitted error. Does > anybody know why this is? Or do I need to ask in a samba mailling list. > > Here is the error: > > chown var/spool/mail/********@*******.com : Operation not permitted > chown var/spool/mail/********@*******.com : Operation not permitted > chown var/spool/mail/********@*******.com : Operation not permitted > chown var/spool/mail/********@*******.com : Operation not permitted > > Thanks, > Max > -- > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
On 9 Sep 2003 "Max Kipness" <mkipness@geniant.com> wrote:> Can someone tell me what the problem is here. I am doing an rsync on a > sendmail spool directory to a folder that is a samba mount.What do you mean by "a samba mount"? A filesystem mounted over smbfs?> Why is rsync trying to change owner?Because you told it to, using the -a, -o or -g options.> Does it have to?You asked for it, you got it :-)> I tried manually changing owner (as root) on a file that is sitting on > the samba mount and I got the same operation not permitted error.Assuming you're using smbfs, it's because smbmount logs in to the server as a single NT user, and all files appear to be owned by that user. Ownership is not preserved. cifsfs may fix this, but you need to ask about that elsewhere. -- Martin