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

Resolved Restore /var/www/vhosts/chroot/ permissions

dalydesign

Basic Pleskian
Yesterday my Cron Jobs started failing withe the following error:

execv("/bin/bash") failed
system error: Permission denied

Likewise I am unable to log in to the virtual hosts files using SFTP it refuses to let any virtual host user connect using SFTP, however I can connect using FTP and I can connect to the server using SFTP using my root account.

In addition to this, in plesk, '/bin/bash (Chroot)' is missing from the Access to the server over SSH drop down list. If I change the domain name user's password, it gives the error: "Error: No secure shell available"

I discovered that in most files in /var/www/vhosts/chroot/ have permissions of 644 and folders were 755

I was then told by my colleague that he mistakingly set the file and folder permissions (recursively) of the /var/www/vhosts/mydomain folder to 644and 755 instead of doing it in /var/www/vhosts/mydomain/httpdocs.

he used this...
find . -type f \-exec chmod 644 {} \;
find . -type d \-exec chmod 755 {} \;
so when I investigated, I saw that the files and folders in /var/www/vhosts/chroot/ have incorrect permissions.

using SSH, I have executed the command "plesk repair fs -y" and this has not fixed it.

Can anyone help!

(Running Plesk 12.5)
 
This fixed it:
Connect to server using ssh and enter the following:

(Fixes the file permissions)
Code:
# Plesk rebuild fs -y

(Then re-build the chroot templates: as per this kb article: How to rebuild chroot template? )
Code:
# wget https://support.plesk.com/hc/en-us/article_attachments/360009607573/update_chroot.tar.gz
# tar -xvzf update_chroot.tar.gz
# ./update_chroot.sh --update
 
Back
Top