How do I completely disable jailshell and get rid of /home/virtfs

hostultra

Well-Known Member
Aug 21, 2002
167
0
166
cpanel keeps mounting filesystems inside /home/virtfs which is causing my server to crash.

Analyzing the dumps show the crash is occurring during a file system mount.

Since I dont mount anything after the server boots, i can only conclude that this jailshell is causing it.

I do not allow any SSH access to my server, so there is no need for jailshell and virtfs, so how do I get rid of it?
 

sirotex

Well-Known Member
Jul 10, 2008
121
0
66
cPanel only mounts when you enable Jailshell on an account. Assuming you've probably ticked the option in Tweak settings 'Use jailshell as the default shell for all new accounts and modified accounts' then untick it.
 

hostultra

Well-Known Member
Aug 21, 2002
167
0
166
"Use jailshell as the default shell for all new accounts and modified accounts" is unticked.

And it definitely mounts when ssh is disabled for accounts.
Running df shows this:

Code:
# df
Filesystem       1K-blocks      Used     Avail Capacity  Mounted on
/dev/ad4s1a      468951494 165354416 266080960    38%    /
devfs                    1         1         0   100%    /dev
procfs                   4         4         0   100%    /proc
/libexec         468951494 165354416 266080960    38%    /home/virtfs/echopost/libexec
/lib             468951494 165354416 266080960    38%    /home/virtfs/echopost/lib
/opt             468951494 165354416 266080960    38%    /home/virtfs/echopost/opt
/usr/lib         468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/lib
/usr/sbin        468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/sbin
/usr/share       468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/share
/usr/bin         468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/bin
/usr/man         468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/man
/usr/libexec     468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/libexec
/usr/local/bin   468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/local/bin
/usr/local/share 468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/local/share
/usr/local/Zend  468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/local/Zend
/usr/include     468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/include
/usr/local/lib   468951494 165354416 266080960    38%    /home/virtfs/echopost/usr/local/lib
/var/spool       468951494 165354416 266080960    38%    /home/virtfs/echopost/var/spool
/var/lib         468951494 165354416 266080960    38%    /home/virtfs/echopost/var/lib
/var/cpanel      468951494 165354416 266080960    38%    /home/virtfs/echopost/var/cpanel
/var/run         468951494 165354416 266080960    38%    /home/virtfs/echopost/var/run
/var/log         468951494 165354416 266080960    38%    /home/virtfs/echopost/var/log
/tmp             468951494 165354416 266080960    38%    /home/virtfs/echopost/tmp
/bin             468951494 165354416 266080960    38%    /home/virtfs/echopost/bin
devfs                    1         1         0   100%    /home/virtfs/echopost/dev
procfs                   4         4         0   100%    /home/virtfs/echopost/proc
/home/echopost   468951494 165354416 266080960    38%    /home/virtfs/echopost/home/echopost
/libexec         468951494 165354416 266080960    38%    /home/virtfs/coolccc/libexec
/lib             468951494 165354416 266080960    38%    /home/virtfs/coolccc/lib
/opt             468951494 165354416 266080960    38%    /home/virtfs/coolccc/opt
/usr/lib         468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/lib
/usr/sbin        468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/sbin
/usr/share       468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/share
/usr/bin         468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/bin
/usr/man         468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/man
/usr/libexec     468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/libexec
/usr/local/bin   468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/local/bin
/usr/local/share 468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/local/share
/usr/local/Zend  468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/local/Zend
/usr/include     468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/include
/usr/local/lib   468951494 165354416 266080960    38%    /home/virtfs/coolccc/usr/local/lib
/var/spool       468951494 165354416 266080960    38%    /home/virtfs/coolccc/var/spool
/var/lib         468951494 165354416 266080960    38%    /home/virtfs/coolccc/var/lib
/var/cpanel      468951494 165354416 266080960    38%    /home/virtfs/coolccc/var/cpanel
/var/run         468951494 165354416 266080960    38%    /home/virtfs/coolccc/var/run
/var/log         468951494 165354416 266080960    38%    /home/virtfs/coolccc/var/log
/tmp             468951494 165354416 266080960    38%    /home/virtfs/coolccc/tmp
/bin             468951494 165354416 266080960    38%    /home/virtfs/coolccc/bin
devfs                    1         1         0   100%    /home/virtfs/coolccc/dev
procfs                   4         4         0   100%    /home/virtfs/coolccc/proc
/home/coolccc    468951494 165354416 266080960    38%    /home/virtfs/coolccc/home/coolccc
After checking, those usernames have ssh disabled.

Code:
# pic /etc/passwd | grep echopost
echopost:*:32418:920::/home/echopost:/usr/local/cpanel/bin/noshell
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
After checking, those usernames have ssh disabled.

Code:
# pic /etc/passwd | grep echopost
echopost:*:32418:920::/home/echopost:/usr/local/cpanel/bin/noshell
Change the shell to /bin/false. The noshell allows SFTP logins, which may be causing this.