Questions tagged [jail-shell]

Jailshell is a very limited shell that allows clients to logon to your server via SSH.

Jailshell is a very limited shell that allows clients to logon to your server via SSH. It limits them to their home directories, keeping the rest of your files on your server from being viewed.

18 questions
3
votes
0 answers

jailshell: composer: command not found

When I SSH into my server and run composer install it works without any issues. However when the command is issued from my CI/CD that would SSH on my server to get the changes I get this error: jailshell: composer: command not found How do I fix…
bassicplays
  • 328
  • 1
  • 7
  • 21
3
votes
2 answers

Setup nodejs and npm within Jailkit

I am using jailkit on my server, and I want to add support for nodejs and npm inside the chrooted environment. I don't know if I'm missing some directory that I need to link into my jail, or some lib or binary, but I'm quite lost. I added the…
Benjamin Tamasi
  • 662
  • 7
  • 18
3
votes
2 answers

ssh2_scp_send() and ssh2_scp_recv() functions are not working in php. Why?

ssh2_scp_send() function is hanging in php. Here's the code: $debug_line_feed = "\n"; $conn = ssh2_connect($sftp_server, 22); $return = ssh2_auth_password($conn, $sftp_user_name, $sftp_user_pass); if ($return===true) echo "successfull…
danjfoley
  • 778
  • 1
  • 8
  • 20
3
votes
1 answer

Create Linux crontab in PHP while using CPanel jailshell

I'm attempting to manage crontabs in PHP without reinventing anything. Reading them works as expected. Writing crons in PHP does not. I have got the first code sample below to work with full shell access turned on. I'm wondering if there is a way…
Eddie
  • 1,428
  • 14
  • 24
2
votes
1 answer

Can't call Python 3 from cPanel cron jobs

I add this in my cpanel cron jobs python3.7 myscript.py But I get this error /usr/local/cpanel/bin/jailshell: python3.7: command not found But I can call python3.7 myscript.py from the command line just fine. How can I run it in cPanel cron jobs?
Aminah Nuraini
  • 18,120
  • 8
  • 90
  • 108
2
votes
1 answer

Jailshell on cpanel - Allow access to additional folders

I've not been able to find a solution to this problem. I'd like clients I give jail-shell access to (rather than normal shell access) the ability to run commands I allow access too, such as Git. Git requires you include the folder…
tomyates
  • 176
  • 9
1
vote
1 answer

Keep laravel queue:work running while in jailshell

I'm having issues keeping the queue:work command running on my server. I tried nohup, but as soon as I close the terminal (which times out every 5 minutes or so no matter what I've tried) the process goes away. I thought about running a script in…
JLZenor
  • 1,460
  • 2
  • 14
  • 23
1
vote
0 answers

How to resolve jailshell install error

I'm trying to install jailshell but while using make command, I am getting the following error: /bin/sh: PYTHONINTERPRETER@: command not found make[1]: * [jk_lib.pyc] Error 127 make[1]: Leaving directory /root/soft/jailkit-2.13/py' make: *…
1
vote
2 answers

rename files on server cpanel jailshell

Im trying to rename files on my server to remove special characters (whitespace, æøå, etc) from the filenames. The problem is that i cannot get the rename-function to work. On my local machine the rename function works as expected rename…
jonasfh
  • 4,151
  • 2
  • 21
  • 37
1
vote
2 answers

Git shared repo on jail shell with single user, multiple developers

I have been trying to set up a decent shared repository location for a small team of developers to share code privately (so no github and the likes). The internet in Ethiopia is erratic, slow, and some websites are blocked for no reason I can…
Billy Moon
  • 57,113
  • 24
  • 136
  • 237
0
votes
0 answers

php artisan commands not working for jailed user

$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" $ php composer-setup.php --install-dir=/usr/local/bin --filename=composer $ cd /home/salman/public_html $ composer create-project --prefer-dist laravel/laravel…
jay
  • 1
  • 2
0
votes
0 answers

Trying to jail linux users using bubblewrap on ubuntu 18.04

I ran the below commands as root to install bubblewrap: $ apt install pkg-config libcap-dev automake $ git clone https://github.com/containers/bubblewrap.git $ cd bubblewrap $ git checkout v0.4.1 $ ./autogen.sh $ make $ make install $ ln -s…
jay
  • 1
  • 2
0
votes
1 answer

Jailkit User Cannot Execute Nextcloud OCC Commands

I have a fresh install of nextcloud 22.2.0, that I installed according to [these instructions:]1 After NC installation, I hae ZERO errors in my NC log. However, in the Overview section I have some basic wearnings that I know are "false positives"…
B-zaro
  • 205
  • 1
  • 14
0
votes
0 answers

unable to push changes to cpanel-hosted repo

I'm trying to set up a cpanel-hosted repository to make continuous deployment with a laravel project, which is also hosted in a github repository. The goal is to use a subdomain as a test server (like xampp on my pc) in order to work with the same…
Nyalum Lacey
  • 133
  • 2
  • 13
0
votes
1 answer

How do I install package on the specific folder for freenas for installing phpmyadmin and mysql

How do I install package on the specific folder for freenas for installing phpmyadmin and mariadb. The part I'm stuck on is putting the right folder into the packages like: Download the necessary packages [2]: apache24 (in web…
1
2