Carl Lowenstein wrote: > On 7/31/07, John Oliver <[EMAIL PROTECTED]> wrote: >> There's a directory on a RHEL4 machine where files show up from Paris, >> probably via rsync The files have 700 permissions, and I have to chmod >> them to 755 for our test people. Is there a way to make all files >> written into this directory start with 755 permissions? >> > > Short answer: yes > Slightly longer answer: # chmod -R 755 .
If you want to automate it (cleanly), you probably have to resolve your 'probably' .. and find out exactly how the files are getting there. After all, it's a combination of umask in effect for the running process anded with the coded perms requested by the actual code (if I understand correctly). If it is rsync, I suppose you might need to consult the man page .. in the paragraph describing the options: -p, --perms and, also the paragraph --chmod Now, it seems these would be the options set by whoever executes rsync. If it's a 'push' then you have to look at the command line executed at the source machine(s). If there is a rsyncd involved (instead of rsync over ssh), then maybe the discussion of /incoming chmod/ in man rsyncd.conf will help. From a simple test I have just done, it appears that rsync does NOT use daemon mode when using ssh transport, so my guess is that rsyncd.conf has no effect (assuming -essh). Regards, ..jim -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
