Ubuntu – Setting up a server for student developers

Apache2sambaserver

I would like everyone's to have a folder in the home directory to accessible over the internet w/ password protected. I would also like to limit how much everyone can have in the home folder.

When they ssh on to the machine they also are only limited to viewing there files, and can see nothing beyond their home directory.

I am setting up a server for some students doing some coding and sharing of files. I would appreciate any help with this.

Please and thank you.

Best Answer

First of all, you should use key-based authentication for ssh, not password based. They need to learn how to do proper security from the start...

OpenSSH has the option to chroot users into their home directory, that should keep the students inside their own $HOME. Alternatively, you can use permissions / umask to restrict access to other student's $HOME.

More might/will be needed depending on what sort of development they need to do...

Related Question