exec `/usr/bin/jailshell' No such file or directory

maguxax

New member
Joined
Apr 8, 2022
Messages
3
Hi,

Did anyone have ever encounter this issues, when running cron job on user account it's keep getting error says;
execl: couldn't exec `/usr/bin/jailshell'
execl: No such file or directory

then if verified the "/usr/bin/jailshell" is existed in the path. Maybe anyone have same issues or known how to fix it?

if i try to run crontab and use the -l to see the configuration it seems already correct;

crontab -u user -l

#direct_crons enabled. Safe to edit this file. DirectAdmin will update accordingly.
MAILTO="[email protected]"
PATH=/usr/local/php72/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/user/.local/bin:/home/user/bin
SHELL=/usr/bin/jailshell
* * * * * echo "test"
 
Looks indeed correct.
Only thing, maybe you already did, is login via SSH, check /usr/bin/jailshell and see if jailshell is chmod 755.

Also... I presume php 7.2 is running on your system via php-fpm? And the user has selected php 7.2.

If all is correct, I don't have further idea's.
 
Only thing, maybe you already did, is login via SSH, check /usr/bin/jailshell and see if jailshell is chmod 755.

Yes i already did it, did already try with 777, but still getting the same error .

Also... I presume php 7.2 is running on your system via php-fpm? And the user has selected php 7.2.

i used lsphp 7.2, and yes user selected the correct version.

if possible how can i customize the jailed ssh in directadmin? where the configuration file is located? i noticed there typo in the error message return;

`/usr/bin/jailshell'
the quote looks different at the start and the end.
 
Also if im using cloudlinux right, so i should not enable the jailssh from directadmin? if i already enable it how can i reset it?.
 
Also if im using cloudlinux right, so i should not enable the jailssh from directadmin? if i already enable it how can i reset it?.
I am using cloudlinux, and can not use terminal
su: failed to execute /usr/bin/jailshell: No such file or directory
 
@mhsolutions I think you can't use cageFS + jailshell, you can use only one of them. With cloudlinux cageFS preffered, so just disable jailshell in user packages.
 
Back
Top