lamp

Well-Known Member
Dec 22, 2003
111
0
166
Hello Everyone,

Quick question.

I have cPanel on a RHL7.3 and am trying to "jailshell" a couple of my users. The problem is that whenever they try to ssh, they are disconnected with the following message:

"Could not exec SHELL: /bin/bash
Connection to domain.com closed."

Now, I checked the /etc/passwd file to see what was going on, and the shell is set to /usr/local/cpanel/bin/jailshell

Does anyone no what is happening here ... and how to fix it?

Thanks
Lamp
 

carluk

Well-Known Member
Sep 2, 2003
161
0
166
/usr/local/cpanel/bin/jailshell is the jailshell. The idea (v. basic version) of jailshell is that / is not really / and that each user has it's own virtual root and files etc.

What is the script you are having problems with exactly?
 

lamp

Well-Known Member
Dec 22, 2003
111
0
166
well...

when the user runs the command:

ssh [email protected],

they get kicked out with a message saying

" Could not exec SHELL: /bin/bash
Connection to domainname.com closed."

So, in essence they cannot ssh... yet they have a "jailshell" permission in their password file. Having said that, they should be able to ssh into their "virtual" account like you said... but they can't.

Lamp
 

porcupine

Well-Known Member
PartnerNOC
Apr 18, 2002
74
0
306
Toronto, Ontario
cPanel Access Level
DataCenter Provider
lamp said:
well...

when the user runs the command:

ssh [email protected],

they get kicked out with a message saying

" Could not exec SHELL: /bin/bash
Connection to domainname.com closed."

So, in essence they cannot ssh... yet they have a "jailshell" permission in their password file. Having said that, they should be able to ssh into their "virtual" account like you said... but they can't.

Lamp
Anyone ever find a solution to this? Migrated a serve to CPanel/64 on a Fedora Core 2 / Dual Opteron platform and ran into this exact problem, word for word.