Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    223

    Default Can't set normal shell

    I'm having a problem with the "Manage Shell Access" feature in WHM. I can set a user to Jail Shell or None. If I set a user to Normal Shell, it says "Saved" as if it worked. But if I return to the panel a second later, the user is back on Jail Shell.

    If that user makes an ssh connection, they get:

    -jailshell: fork: Resource temporarily unavailable

    This problem just started, and I'm not sure what's changed to cause it. Any idea where to look? Thanks.

  2. #2
    Member
    Join Date
    Feb 2005
    Posts
    223

    Default

    Also, I've tried turning Shell Fork Bomb Protection off and then on again. The problem persists regardless what state that setting is in.

  3. #3
    Member
    Join Date
    Feb 2005
    Posts
    223

    Default

    For the archives, I finally did get this fixed. Here's how:

    1) Went into Tweak Settings and disabled "Use jailshell as the default shell for all new accounts and modified accounts"

    2) Disabled Shell Fork Bomb protection (not needed - this server handles only highly trusted accounts, though I wouldn't mind being able to leave it on if I could).

    But normal shells are working again.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Experienced this as well and find it very irritating.

    jailshell as default for new or modified accounts is good, but if I have to enabled normal shell I shouldn't have to disable the option and disable shell fork bomb protection.

    (wanting to enable normal shell just for a cpanel support ticket investigation)

  5. #5
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    FYI: For future reference I suppose -- edit the /etc/passwd file

    All you really need to do is simply change the shell to /bin/bash for the user that you want to have full SSH access.

    The "chsh" command in SSH will do the same thing for you as well

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

    Root Administrator

    Default

    This is currently a bug within the product. When Use jailshell as the default shell for all new accounts and modified accounts is enabled the Manage Shell Access interface will only set a user's shell to jailed or noshell. This matter is reported to the developers and should be addressed.
    Kenneth
    Product Manager
    cPanel, Inc.

  7. #7
    Member
    Join Date
    Feb 2005
    Posts
    223

    Default

    Thanks for the response Kenneth. Good to know it's not me.
    We'll be on the lookout for an update.

  8. #8
    Member
    Join Date
    May 2006
    Posts
    19

    Default

    Yes, I just ran into this too. I didn't need to change the fork bomb setting. I found when the new/modified shell setting was set to jailed, and then you managed shell access, you could set it to normal, but at the bottom it'd tell you the "normal shell" was set to the jailshell. So of course setting an acct to normal was also setting it to jailed. And when you came back and looked at the settings, it shown them all as jailed again. Turn off the new/modified jail shell setting. Then at the bottom of the manage shell access, you'll see the normal shell is actually a real shell. Then it all works as normal.

    And this is fine for me, as I don't want _modified_ accounts changing their access, just new ones. So I'll leave that off anyways, and know when I set up a new acct to go in and make sure it is set to jailed, if that's what I want.

    So thanks for the pointer, or I might not have considered to change that setting!

  9. #9
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    This particular function in WHM has been a little buggy for quite some time ...

    If you edit the "/etc/passwd" file or use "chsh" command to set the shell for user's manually then you can be a lot more confident that everything is configured correctly for the user account(s) in question.

  10. #10
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    LMAO .... apparently I'm putting in too many hours --- posted twice

Similar Threads & Tags
Similar threads

  1. Sorry, the shell, Enable Normal Shell does not exist!
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-15-2007, 07:05 AM
  2. Jailshell / normal shell
    By Edem in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-12-2006, 06:25 PM
  3. Normal shell
    By petfut in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-20-2005, 05:41 PM
  4. jailed shell access - how does it differ from normal shell?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-04-2004, 11:08 AM
  5. Normal Shell and Jail Shell?
    By JustinS in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-27-2003, 05:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube