• 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.

FreeBSD bash (chroot) scp fails

T

theflinnster

Guest
When using FreeBSD 6.2 and Plesk users with the bash (chroot) shell, I get the following error.

Couldn't open /dev/null: No such file or directorylost connection

I spoken to SWSoft's support people and they have confirmed that it is a bug in Plesk, but can't get me a fix and haven't told me when if ever I can expect to see a fix.

Has anyone else experienced this problem, even better do you have a solution?

Thanks
 
The support team says this:

The solution is scheduled to the nearest 8.1.1 patch which is released in about a month, in the middle of March.

I have figured out a partial solution. In the chrooted directories you can mount a devfs.

Code:
# cd /usr/local/www/vhosts/test.com
# mkdir dev
# mount -t devfs none dev

You can now use scp with the chrooted bash on the account.

Since FreeBSD 6+ uses devfs, mknod doesn't seem to work. So simply copying device nodes from /dev doesn't work. Unfortunately when the system reboots the devfs goes away. So you need to come up with a temporary solution until 8.1.1 comes out.

Maybe creating an rc.d script to mount and unmount the devfs for each account...but that's not a good solution. Let's see what the developers come up with.
 
Back
Top