Setting up a shared sftp file area

Ben Williams ben.williams at gmail.com
Mon May 23 09:44:23 EDT 2005


On 5/21/05, Zack Cerza <zcerza at coe.neu.edu> wrote:
> chmod g+s $DIR should help. man stat(2) and look for the paragraph about
> S_ISGID. That in combination with a umask that gives the group the
> permissions you want should be enough. As for how to set that umask for all
> your users but only for that folder, I can't help you there :(
>
Thanks, this gets me really close to what I wanted. Forcing my users' umask is
actually no problem but it doesn't do anything because sftp/scp ignores the
umask and maintains the permissions on the source file. Now I just need to
find a way to force the permissions that sftp/scp uses.

-Ben



More information about the Discuss mailing list