• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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 Cannot exec chroot on NFS mounted vhost.

raytracy

Basic Pleskian
I got the following error when ssh login to a chrooted vhost which mounted on NFS:

Jul 25 04:00:04 imglib plesk-chrootsh[11740]: execv("/bin/bash") failed
Jul 25 04:00:04 imglib plesk-chrootsh[11740]: system error: Permission denied


And found the KB
Error when enabling chroot: execv("/bin/bash") failed, system error: Permission denied

I have follow KB to change the NFS mount to exec option, but problem still persist:

/etc/fstab:
pve1data:/IMGLIB /var/www nfs defaults,_netdev,exec,context="system_u:eek:bject_r:httpd_sys_rw_content_t:s0" 0 1

Since I am not familiar with NFS permission, is there any thing I missing?

CentOS 7.3+Onyx 17.5#MU14, SELinux set as permissive.
 
Please, try to disable SELinux completely or try to set the correct boolean to allow the web server to use NFS:

# setsebool -P httpd_use_nfs 1
 
Yes, I did setbool httpd_use_nfs and setenforce to permissive. In fact, I did set the following:

setsebool -P httpd_use_nfs 1
setsebool -P git_system_use_nfs 1
setsebool -P httpd_can_sendmail=1
setsebool -P httpd_can_network_connect=1
setsebool -P ftp_home_dir on

The most confused thing is: httpd ask me to set httpd_sys_rw_content_t or it will be denied to access files, but chroot seems ask me to set httpd_sys_content_t, I don't know how can I set both context together to a mount point?

Hmmmm...I will try to disable SELinux later, but I really need this feature because my client's auditor ask for and we are prohibited to operate without it.

Do you have a complete procedure guide to setup SELinux for Onyx with nfs mount?
 
Do you have a complete procedure guide to setup SELinux for Onyx with nfs mount?
Sorry, but we do not have. I've never tried using NFS for vhosts location. It would be interesting to see the results of your research on this problem.
 
Back
Top