Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting up a shared sftp file area



[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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org