- sudo adduser coderdojo
- sudo vi /etc/ssh/sshd_config
- Add the following to the end of the config file:
Match User coderdojo
ChrootDirectory /home/coderdojo
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp - sudo /etc/init.d/ssh restart
- Finally the user's directory needs to be owned by root so: sudo chown root:root /home/coderdojo
- Create a folder on the scriptcraft server for the coderdojo files: sudo mkdir /home/coderdojo/dojo
- sudo chown coderdojo:coderdojo /home/coderdojo/dojo
- Now set up a symbolic link from the ScriptCraft plugin directory back to the coderdojo user's directory: sudo ln -s /home/coderdojo/dojo /home/scriptcraft/bukkit/js-plugins/dojo
- sudo chmod a+w /home/coderdojo/dojo
With this setup in place, users can use SFTP to edit files on the ScriptCraft server that are then picked up and run by the ScriptCraft Javascript module.
The instructions I followed for this setup are on the Debian Admin site.
No comments:
Post a Comment