jailmount missing files in /etc
/usr/local/cpanel/bin/jailmount appears to be missing mounting the files in /etc for the user's chroot.
This would seem to be an issue with PHP-FPM using chroot - (touch /var/cpanel/feature_toggles/apachefpmjail - Enhance FPM support) If you change the user's shell to jailshell and change into that user, then /etc gets populated as it should:
I am seeing this issue in 11.58.0.32 as well as 11.56.0.35
# ls -al /home/virtfs/chroot2w/etc
/bin/ls: cannot access /home/virtfs/chroot2w/etc: No such file or directory
# /usr/local/cpanel/bin/jailmount chroot2w
# ls -al /home/virtfs/chroot2w/etc
total 24
drwxr-xr-x 6 root root 4096 Oct 26 12:45 ./
drwx--x--x 13 root root 4096 Oct 26 12:45 ../
drwxr-xr-x 2 root root 4096 May 26 00:04 alternatives/
drwxr-xr-x 11 root root 4096 Oct 20 10:16 apache2/
drwxr-xr-x 3 root root 4096 Feb 25 2014 mail/
drwxr-xr-x 3 root root 4096 Oct 26 12:45 pki/This would seem to be an issue with PHP-FPM using chroot - (touch /var/cpanel/feature_toggles/apachefpmjail - Enhance FPM support) If you change the user's shell to jailshell and change into that user, then /etc gets populated as it should:
# usermod -s /usr/local/cpanel/bin/jailshell chroot2w
# su - chroot2w
Attempting to create directory /home/chroot2w/perl5
[~]# exit
logout
# ls -al /home/virtfs/chroot2w/etc
total 1240
drwxr-xr-x 13 root root 4096 Oct 26 12:51 ./
drwx--x--x 14 root chroot2w 4096 Oct 26 12:51 ../
-rw-r--r-- 1 root root 1624 Feb 26 2014 aliases
drwxr-xr-x 2 root root 4096 May 26 00:04 alternatives/
-rw-r--r-- 1 root root 10634 Jul 6 10:04 antivirus.exim
.
.
.I am seeing this issue in 11.58.0.32 as well as 11.56.0.35
-
Hi, Would you mind throwing in a ticket on this so we can check the system out and get a case filed? Thank so much! 0 -
Support Request ID is: 7832975 0 -
I am facing the same error.Was there a resolution to this error? Seeing in v64 and v66 0 -
I think the workaround I came up with for this was to run: su -s /usr/local/cpanel/bin/jailshell -c exit %user% Which effectively logs into the user's jailshell and immediately exits. This creates the complete /home/virtfs/%user% structure. 0 -
Hello, Internal case EA-5524 is open to address an issue where an account's virtual file system is not updated after enabling PHP-FPM. The following command is available as a workaround: /scripts/update_users_jail $username
Thank you.0
Please sign in to leave a comment.
Comments
5 comments