Hi Eric, The umask would be preferable to using --chmod. Is that possible? You're right about the inheritance of course, my bad. I originally noticed it writing to a ZFS filesystem that is NFS4 mounted, where inheritance is set to passthrough. Hence my confusion
Regards John ________________________________________ From: ericbamba...@discover.com [ericbamba...@discover.com] Sent: Thursday, 20 December 2012 12:26 AM To: Ryan John Cc: rsync@lists.samba.org; rsync-boun...@lists.samba.org Subject: Re: rsync without POSIX ACLs Ryan, I'm not sure what you expect to happen since for most filesystems there is no concept of "permission inheritance" in unix-like operating systems. Rather, newly created files obey the currently set umask (usually 022). Are you saying you want rsync to use your current umask instead of passing the --chmod argument? Eric Bambach | Discover Senior Assoc. Programmer, Warehouse Infrastructure and Tools 2500 Lake Cook Road, Riverwoods IL 60015 P: 224.405.2896 ericbamba...@discover.com From: "Ryan John" <john.r...@bsse.ethz.ch> To: "rsync@lists.samba.org" <rsync@lists.samba.org> Date: 12/19/2012 04:54 PM Subject: rsync without POSIX ACLs Sent by: <rsync-boun...@lists.samba.org> Hi, I’m trying to rsync from an IBM SONAS, that has no POSIX ACLs. I thought that without the –p flag, this should still work, and the destination will just inherit permissions, however, it doesn’t. My source directory on the SONAS looks like: ~$ ls -la /net/sonas/directory d--------- 2 user group 36 Oct 9 12:59 ./ d--------- 2 user group 36 Oct 9 12:59 ../ ---------- 2 user group 36 Oct 9 12:59 file (I can still read/write files and dirs, it just looks like I can't) If I try to rsync this like: Rsync –rlt /net/sonas/directory /tmp/ The directory is created in /tmp/ and then the ACLs on the directory, and the files in it are set to ---------, then rsync fails, because it can’t read the directory rsync: recv_generator: failed to stat "/tmp/directory/file": Permission denied (13) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6] I can get around it by doing: rsync -rlt --chmod=u+rwx,g+rx /net/sonas/directory /tmp/ but that's not really satisfactory, as I'd just like it to inherit the destination permissions. Does anyone know a better way? Thanks in advance John -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html Please consider the environment before printing this email. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html