Author Topic: Jailkit appears to be broken!  (Read 3460 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Jailkit appears to be broken!
« on: May 25, 2021, 05:39:58 PM »
My server is up and running, running very well I may add. But I do have an issue with jailkit.

I have a user that needs shell access to run a Drupal site,  but he wants to use Composer.

I gave his account shell access through the Jailkit, and after setting up ssh keys, he is able to login with no issues.
The problem is that he cannot access many things, like nano gives the error: "Error opening terminal: unknown", and nano is listed in /home/jail/bobby/bin.

How can this be fixed properly?


Offline
*
Re: Jailkit appears to be broken!
« Reply #1 on: May 26, 2021, 01:39:33 PM »
terminal is not interactive
Applications Developer | RHEL Linux Server Administrator

Reach out to me in pm to solve any application deployment such as NodeJS, Java, PHP etc


Managed 40gb Shared CWP PRO Hosting for $20 p/a offer
Managed 60gb Shared CWP PRO Hosting for $40 p/a offer
Managed 100gb Shared CWP PRO Hosting for $60 p/a offer
Managed 200gb Shared CWP PRO Hosting for $120 p/a offer


CentOS 8 died a premature death at the end of 2021 - migrate to RockyLinux Os.

Offline
*
Re: Jailkit appears to be broken!
« Reply #2 on: May 26, 2021, 01:40:13 PM »
He can use vi instead
Applications Developer | RHEL Linux Server Administrator

Reach out to me in pm to solve any application deployment such as NodeJS, Java, PHP etc


Managed 40gb Shared CWP PRO Hosting for $20 p/a offer
Managed 60gb Shared CWP PRO Hosting for $40 p/a offer
Managed 100gb Shared CWP PRO Hosting for $60 p/a offer
Managed 200gb Shared CWP PRO Hosting for $120 p/a offer


CentOS 8 died a premature death at the end of 2021 - migrate to RockyLinux Os.

Offline
*
Re: Jailkit appears to be broken!
« Reply #3 on: May 26, 2021, 09:24:50 PM »
OK, So I am closer to finding the problem...

so when I run echo "$PATH" I get the following path
Code: [Select]
/usr/local/bin:/usr/bin

It turns out that the bin directory is located in the jail directory but not in the users /home directory so the user cannot of course access any but basic commands.

jailkit is defenitly broken!

The paths in .bash_profile do not work either because the /home/jail is not in the users path... Jailkit is essentially unusable.


« Last Edit: May 26, 2021, 09:26:21 PM by joaomach »

Offline
*
Re: Jailkit appears to be broken!
« Reply #4 on: May 29, 2021, 04:39:41 PM »
Well, it turns out that jailkit is not broken, it was just the particular commands that I  needed were not  available to the user. I purchased a one time support ticket, and they were able to add them for me and all is working now.

As a reference, the commands I needed were: nano, php, curl, clear
If you need any of these either figure out how to add them using jailkit man pages or pay them $8 and they will do it quickly.

I spent enough time trying to figure it out, $8 was worth it for me.