I’m having issues with sftp access for users. When a new user is created by VirtualMin it sets the shell directory to /sbin/jk_chrootsh. The user gets access denied when trying to connect via SFTP.
If I change the users shell to /usr/sbin/jk_chrootsh (done through webmin) the user can then log in.
That would be fine, except any change to the user account through VirtualMin results in the path being reset and the user losing access again until I manually set it back.
/sbin is a symlink to /usr/sbin so I don’t really understand why one works and the other doesn’t, however is there a way to set the dafault path VirtualMin uses? If I could get it to default to /usr/sbin/jk_chrootsh instead of /sbin/jk_chrootsh that would resolve the issue.
Logs are you best bet to find the issue, check /var/logs/proftp directory for any dropped logs.
Check the docs, the pro version and a section for allowing extra command and directories and writes to the /etc/jailkit/jk_init.ini file.
Does the file exist and if it does you may need to allow sftp.
BTW I know very little about jailing as I don’t use it so I maybe way off here.
Ok thanks I’ll take a look, though I stil think it’s more an issue with the Virtualmin config than proftp. If I could configure it to use the correct path by default it wouldn’t be a problem.
yeah I know, just saying the file pro changes is /etc/jailkit/jk_init.ini
Unless pro is doing something with different jailkit then you should be able to edit this manually.