• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Chroot doesnt work?

Sempiterna

New Pleskian
Hi,

I was setting up Jailkit on my server to safely assign shell accounts (without domains) to users. However, eventho the users are restricted to their shell inside ssh, when they use ProFTPD to upload files, they can traverse the whole structure of the server.

I have googled around a lot, and found that inside the /etc/proftpd.conf file i need to set "RequireValidShell off", but that does (even after a reboot, because plesk doesnt have proftpd as a service :/) not seem to do anything. That setting should work, but somehow with plesk inside the system, it does not.

I have no idea what to do next. The chrooted environment works perfectly inside ssh, but if it doesnt work with FTP, then that defeats the whole purpose of a chrooted environment.

Anyone have any idea as to how to do this?
 
Hi
Plesk do use ProFTPd, however it runs not as a standalone server, but through xinetd/inetd. Anyway, if you take a look at the file /etc/xinetd.d/ftp_psa you will see that the configuration file used is /etc/proftpd.conf. This file has "Include" directive (see at the end):
# cat /etc/proftpd.conf | grep ^Include
Include /etc/proftpd.include
Write your directive to this file and restart xinetd to apply the changes, it should work.
 
Back
Top