dev.null

Well-Known Member
May 27, 2003
84
2
158
Yep, I've read the doc. (https://documentation.cpanel.net/pages/viewpage.action?pageId=1507360)

None of my accounts are jail enabled. (Home >> Account Functions >> Manage Shell Access)

According to the docs all I have to do is
Code:
umount /home/virtfs/<username>/usr/bin
It umounts just fine.

All the other mounted directories remain:

Code:
cat /proc/mounts | grep <username>
/dev/root /home/virtfs/<username>/bin ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
devtmpfs /home/virtfs/<username>/dev devtmpfs rw,nosuid,noexec,relatime,size=6149388k,nr_inodes=1537347,mode=755 0 0
/dev/root /home/virtfs/<username>/lib ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/opt ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/loop0 /home/virtfs/<username>/tmp ext3 rw,nosuid,noexec,relatime,data=ordered 0 0
/dev/root /home/virtfs/<username>/usr ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/var ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/sbin ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/lib64 ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/var/log ext3 rw,nosuid,noexec,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/loop0 /home/virtfs/<username>/var/tmp ext3 rw,nosuid,noexec,relatime,data=ordered 0 0
/dev/root /home/virtfs/<username>/etc/mail ext3 rw,nosuid,noexec,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/usr/sbin ext3 ro,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/var/spool ext3 rw,nosuid,noexec,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/etc/pki/tls ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/etc/alternatives ext3 ro,nosuid,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/var/cpanel/email_send_limits ext3 rw,nosuid,noexec,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/usr/local/cpanel/3rdparty/mailman ext3 ro,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/usr/local/cpanel/3rdparty/mailman/logs ext3 rw,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/usr/local/cpanel/3rdparty/mailman/lists ext3 rw,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/usr/local/cpanel/3rdparty/mailman/locks ext3 rw,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/usr/local/cpanel/3rdparty/mailman/qfiles ext3 rw,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
/dev/root /home/virtfs/<username>/home/<username> ext3 rw,noatime,errors=remount-ro,data=ordered,jqfmt=vfsv0,usrjquota=quota.user 0 0
I can umount each one of those, but they all just end up coming back within a minute.

Any trick to really getting rid of virtfs?
 

dev.null

Well-Known Member
May 27, 2003
84
2
158
When I looked at the user's crontab I found it still referenced the jailed shell, I changed it to /bin/bash, unmounted the mount binds again, this time they didn't come back.
 
  • Like
Reactions: Infopro