• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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