shacker23

Well-Known Member
Feb 20, 2005
263
1
168
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.
 

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
Also, I've tried turning Shell Fork Bomb Protection off and then on again. The problem persists regardless what state that setting is in.
 

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
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.
 

DomineauX

Well-Known Member
PartnerNOC
Apr 12, 2003
429
11
168
Houston, TX
cPanel Access Level
Root Administrator
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)
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
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
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
79
458
cPanel Access Level
Root Administrator
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.
 

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
Thanks for the response Kenneth. Good to know it's not me. :)
We'll be on the lookout for an update.
 

JamieW

Member
May 15, 2006
20
0
151
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!
 

Spiral

BANNED
Jun 24, 2005
2,020
8
193
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.