• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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