Hallo,
i need additional SFTP Accounts to recieve some secure files from our connected companys and i don't want to open FTP incl. a lot of passive ports
The chroot Folder is into the Domain environment /var/www/vhost/<Domain>/<Folder>
I have found some solutions but nothings works correctly
The last i try was these:
/usr/local/psa/admin/bin/chrootmng --create --source=/var/www/vhosts/chroot/ --target=/var/www/vhosts/<domain>/<Folder> --setup-user=<2nd Web User>
but that opens a whole access to root /
in the /etc/passwd i have this:
<2nd Web User>:x:10001:1003::/var/www/vhosts/<Domain>/<Folder>:/opt/psa/bin/chrootsh
and in /var/www/vhosts/<Domain>/etc/passwd
<2nd Web User>:x:10001:1003::/var/www/vhosts/<Domain>/<Folder>:/bin/bash
Have someone a complete solution to create new User for SFTP with a chrooted Folder?
i need additional SFTP Accounts to recieve some secure files from our connected companys and i don't want to open FTP incl. a lot of passive ports
The chroot Folder is into the Domain environment /var/www/vhost/<Domain>/<Folder>
I have found some solutions but nothings works correctly
The last i try was these:
/usr/local/psa/admin/bin/chrootmng --create --source=/var/www/vhosts/chroot/ --target=/var/www/vhosts/<domain>/<Folder> --setup-user=<2nd Web User>
but that opens a whole access to root /
in the /etc/passwd i have this:
<2nd Web User>:x:10001:1003::/var/www/vhosts/<Domain>/<Folder>:/opt/psa/bin/chrootsh
and in /var/www/vhosts/<Domain>/etc/passwd
<2nd Web User>:x:10001:1003::/var/www/vhosts/<Domain>/<Folder>:/bin/bash
Have someone a complete solution to create new User for SFTP with a chrooted Folder?