Setting the File/Folder chmod bits - Wish List ?
jw schultz
jw at pegasys.ws
Mon Nov 18 11:51:03 EST 2002
On Mon, Nov 18, 2002 at 11:20:17AM -0000, Leigh Dodd wrote:
> Is it possible to set the u-g-o bits in a Rsync ?
>
> What I want to do is synce files from one machine to another (public web
> machine) so that all the files are READ-ONLY and, of course, the sub
> folders READ+EXECUTE-ONLY.
>
> Can't find any command line options or rsync.conf settings.
>
> Would be nice to have a --chmod-file=xxxx and a --chmod-folder=xxxx
> option, and with the same type of function in the conf file.
I think something like this has come up before. As it is
you can either bracket the rsync with chmod of the source
or you can chmod -R a-w destination afterwards. To confirm,
i tried playing with umask and a umask of 222 prevented the
transfer.
If you choose to chmod the destination i'd suggest not using
the -p or -a options.
PS. In POSIX filesystems we don't have folders. We have
directories. And the difference matters :)
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync
mailing list