I would like to grant a subdomain ftp user the right to use a chrooted sftp rather than plain ftp to log into his site. However, the only way to do this appears to be to change his shell to a full bash shell, rather than using the psa chroot shell as can happen with regular domain users. Why does this not work for subdomain users?
[root@mydomain ~]# cat /etc/passwd
subuser:x:10030:10001::/var/www/vhosts/mydomain.com/subdomains/test:/usr/local/psa/bin/chrootsh
Even when I try to "su - subuser" from root, I get this error, which I assume is a symptom of the problem:
[root@mydomain ~]# su - subuser
mkdtemp() failed
system error: No such file or directory
Any ideas how to make this work?
T
[root@mydomain ~]# cat /etc/passwd
subuser:x:10030:10001::/var/www/vhosts/mydomain.com/subdomains/test:/usr/local/psa/bin/chrootsh
Even when I try to "su - subuser" from root, I get this error, which I assume is a symptom of the problem:
[root@mydomain ~]# su - subuser
mkdtemp() failed
system error: No such file or directory
Any ideas how to make this work?
T