ftp / putty account

Can I make a ftp/putty account only for a directory? Example: I want to make a putty / ftp account to /usr/games/1, and this user can make a commands only to this directory (no shutdown or other commands, only in this directory). I can make this?
 
File /etc/ssh/sshd_config you can add sections for individual users.

Code:
# Example of overriding settings on a per-user basis
#Match User anoncvs
#	X11Forwarding no
#	AllowTcpForwarding no
#	ForceCommand cvs server

Here you can Chroot a user to a directory for SSH file transfers.

FTP and Putty are two different things; so make sure you know what you need and want.

You may look more into the Handbook

If you want more info on SSH: SSH Mastery is a good inexpensive book that's easy to understand.

As a word of advice always test SSH config settings before rebooting you may end up locking yourself out of the server and unless you have physical access it can be a pain.
 
Yes, I know this, FTP and Putty are two different things. I need an FTP account for file transfer, and a Putty account for reboot/start/close server (counter-strike server).
 
And there is no such thing as "a PuTTY account". It's plain old SSH.
 
Back
Top