The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by hostultra, Jan 12, 2009.

  1. hostultra

    hostultra Well-Known Member

    Joined:
    Aug 21, 2002
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  2. sirotex

    sirotex Well-Known Member

    Joined:
    Jul 10, 2008
    Messages:
    121
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  3. hostultra

    hostultra Well-Known Member

    Joined:
    Aug 21, 2002
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    "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
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Change the shell to /bin/false. The noshell allows SFTP logins, which may be causing this.
     
  5. whplus

    whplus Well-Known Member

    Joined:
    Dec 8, 2007
    Messages:
    66
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Behind your business
    how to completely disabling VirtFS and SFTP?
     
Loading...

Share This Page