Setting up a shared sftp file area

Zack Cerza zcerza at coe.neu.edu
Sat May 21 22:40:13 EDT 2005


[originally sent to Ben only - Ben, fix your Reply-To header!]

On Fri May 20 2005 10:22, Ben Williams wrote:
> This is probably a basic question but I'd like to set up a shared file
> area on a remote machine where a group of users can upload files that
> will be accessible to the other members of the group. I tried just
> setting up a folder owned by the group but of course that doesn't work
> because the uploaded files are owned by the user who uploaded them and
> aren't accessible to the other users. I'd like some more secure than
> ftp but I'll use it if that's the only easy way of doing this.

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 :(

Zack



More information about the Discuss mailing list