handsomebob14
Posts: 2
Joined: Fri Sep 16, 2016 2:13 pm

SFTP Server

Fri Sep 16, 2016 2:22 pm

Hi Everyone,

What i'm trying to do is Build a small server for my friends away at college to upload their work to. The goal is to Collaborate, and all I need to do is create One folder for the project to get stored in.

How can I create a folder that can be seen in all users' home folders that all have the same updated information every time the group works on something.

Thanks for the help!

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: SFTP Server

Sat Sep 17, 2016 9:16 am

A folder can only exist in one location, however what you can do is have a symlink in each users home folder to the central folder which will achieve the same thing. You can create a symlink from the shell with a command like

Code: Select all

ln -s /path/to/folder /home/user/work
This will make a symlink called work that points to /path/to/folder

To give everyone access you'll need to put them all in the same group on the Pi and give the folder group write access

Code: Select all

chmod g+rwx /path/to/folder
However you need to ensure that users creating files do so in a way that gives group write access as well (the default will be only the creating user can write). You might be able to solve that with more detailed ACLs although I'm not sure what the state of those are on Linux.

An alternate option might be using an Source Code management platform. The most popular one being git. This works particularly well with source code and other things which are simple text files, but can also be used for binary files (images, word documents etc). And will keep track of the various versions and the commit messages can be used to track whats been changed.

handsomebob14
Posts: 2
Joined: Fri Sep 16, 2016 2:13 pm

Re: SFTP Server

Fri Sep 23, 2016 2:03 pm

Thanks mfa298, you are a Gentleman and a Scholar!

Return to “Troubleshooting”