Topic: Can't change directory
Hello,
I have little problem with MySecureShell on my Debian 4.0 box. I installed MySecureShell via "apt-get install mysecureshell".
Afer changing the loginshell of a user - say "sidi" to /bin/mysecureshell.sh and adding the "sftp" line in /etc/ssh/sshd_config I can
log in with sftp. But as soon as I try a "dir", "ls" or "cd" I got:
sftp> dir
Couldn't stat remote file: Permission denied
Can't ls: "/var/www/web87" not found
sftp> cd web
Couldn't stat remote file: Permission denied
/var/www/web87 ist the home-dir of the user "sidi".
Wenn I set both "StayAtHome" and "VirtualChroot" to false I can use "dir" and "cd" but then the user can change above his home-directory,
which is what I doesn't want.
Users should only see their home-directorys and should only changedir inside their one home-directory.
In this case /var/www/web87 and below.
What have I done wrong?
Many thanks & regards,
martin