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 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>
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.