I have a user who is jailed.
Subsystem sftp internal-sftp Match user matt ChrootDirectory %h X11Forwarding no AllowTcpForwarding no
This works perfectly for sftp. The user is limited to his home folder, and whatever mounts are there.
But, I'd like to also give this use shell access. This is what happens when they attempt to log in:
$ ssh email@example.com Linux devnode 2.6.38-linode31 #1 SMP Mon Mar 21 21:22:33 UTC 2011 i686 GNU/Linux Ubuntu 10.04.2 LTS Welcome to Ubuntu! * Documentation: https://help.ubuntu.com/ Last login: Thu Mar 31 13:04:29 2011 from abc.nyc.res.rr.com /home/matt/bin/bash: No such file or directory Connection to server.com closed.
Via fstab, the bin folder is mounted to the home directory and is present.
Why am I getting this error.. and how can I solve this?
Thanks for the help!