Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    170

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

    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?
    Host Ultra
    Quality Affordable Web Hosting

  2. #2
    Member
    Join Date
    Jul 2008
    Posts
    121

    Default

    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. #3
    Member
    Join Date
    Aug 2002
    Posts
    170

    Default

    "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
    Host Ultra
    Quality Affordable Web Hosting

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by hostultra View Post
    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.

  5. #5
    Member whplus's Avatar
    Join Date
    Dec 2007
    Location
    Behind your business
    Posts
    57

    Default

    Quote Originally Posted by cpanelkenneth View Post
    Change the shell to /bin/false. The noshell allows SFTP logins, which may be causing this.
    how to completely disabling VirtFS and SFTP?

Similar Threads & Tags
Similar threads

  1. /home/virtfs eating up space - not using jailshell
    By PWSowner in forum cPanel and WHM Discussions
    Replies: 21
    Last Post: 09-16-2010, 03:58 PM
  2. How to remove virtfs and disable jailshell completely
    By gribozavr in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 07-14-2010, 09:51 AM
  3. Deleted /home/virtfs! Completely Screwed. Help!
    By yong in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-30-2007, 12:09 PM
  4. Get rid of Apache Completely
    By bpat1434 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-16-2007, 05:56 PM
  5. what is virtfs directory in /home/virtfs ??
    By SACHIN in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-01-2007, 10:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube