Account restrictions

Lets say for example I want to restrict a users access, for example if they FTP in I want to lock them down to a certain directory. What is the best way of doing this? I'm planning to implement LDAP accounts, so I'd need this to be done automatically. Just not sure how I would go about this task.

See MySecureShell - Index

Or use a chroot. Latest versions of OpenSSH (> 4.8)already include a built-in chrooting option.

Have a loot at your sshd_config manpage.

Thanks for your help :slight_smile: