rsync without POSIX ACLs
john.ryan at bsse.ethz.ch
Wed Dec 19 23:53:57 MST 2012
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
From: ericbambach1 at discover.com [ericbambach1 at discover.com]
Sent: Thursday, 20 December 2012 12:26 AM
To: Ryan John
Cc: rsync at lists.samba.org; rsync-bounces at lists.samba.org
Subject: Re: rsync without POSIX ACLs
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 ericbambach1 at discover.com
From: "Ryan John" <john.ryan at bsse.ethz.ch>
To: "rsync at lists.samba.org" <rsync at lists.samba.org>
Date: 12/19/2012 04:54 PM
Subject: rsync without POSIX ACLs
Sent by: <rsync-bounces at lists.samba.org>
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
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
Does anyone know a better way?
Thanks in advance
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options:
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Please consider the environment before printing this email.
More information about the rsync