Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2003
    Posts
    129

    Default Jailshell: What not to do and how to fix it

    What not to do: (based on personal experience on a fully deployed server... almost gave myself a heart attack )

    Never ever touch directories inside the /home/virtfs folder. As nick has mentioned they "mounted?" from your own root files and whaever change you make you will be making to your root files. For example... rm -rf /home/virtfs/username (in an attempt to revoke the user's jailshell) will result in a server with no sshd and an empty /usr/sbin...

    Now that you've done it... How to fix it:

    If its a test server or a new server just order a restore... it will save you time. However, if you have customers on the server, this is what did it for me:

    DO NOT RESTART!!! You restart and you lose ssh which means that restore is your only chance. rpmfind.net will be your friend for the next 5-10 hour. First fix Ssh.if you have a backup sshd... place it into /usr/sbin/. If you don't, recompile openssh and place the sshd in /usr/sbin.

    Then do: rpm -V -a | grep missing.

    It will show you some of the files that are missing. These files will usually be in /usr/sbin. Search for the path of each file at rpmfind.net and find the rpm thats right. You can do rm -q RPM to check which version was installed previously. After about 10 hours you should be through the list of missing files. You can now reboot and should have a fully working system...

    cPanel.net Support Ticket Number:

  2. #2
    happyadmin
    Guest

    Default Jailshell:

    Good post :)

    cPanel.net Support Ticket Number:

Similar Threads & Tags
Similar threads

  1. Jailshell ?
    By Getenks in forum New User Questions
    Replies: 2
    Last Post: 11-23-2009, 05:21 PM
  2. How to fix it '-jailshell: Resource deadlock avoided'
    By ncsupport in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-29-2009, 08:34 AM
  3. Replies: 1
    Last Post: 10-29-2009, 08:34 AM
  4. About Jailshell.
    By ruv in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-04-2003, 06:04 AM
  5. jailshell
    By silvernetuk in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-30-2003, 03:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube