flexjoly
Verified User
Hi,
I am trying to do a wget from an external url. Logged in as root, it works fine (manually). But as a cron the connection is refused. Chatgpt tells me it may have to do with different shell and even because of jailshell.
So I changed the shell to /bin/bash
Jailshell is installed with custombuild. But I cannot find how to remove it there.
I changed directadmin.conf to "jail=0".
In the user settings: jailed is not checked.
But the cron still does not work.
user crontab:
What am I doing wrong? And how to remove jailshell?
Thanks in advance!
I am trying to do a wget from an external url. Logged in as root, it works fine (manually). But as a cron the connection is refused. Chatgpt tells me it may have to do with different shell and even because of jailshell.
So I changed the shell to /bin/bash
Jailshell is installed with custombuild. But I cannot find how to remove it there.
I changed directadmin.conf to "jail=0".
In the user settings: jailed is not checked.
But the cron still does not work.
user crontab:
Code:
000=52 * * * * /usr/bin/wget --inet4-only -O /home/client/domains/xxxx.com/files/front/prodvar_$(date +\%Y\%
m\%d_\%H\%M\%S).json "https://ftbserv.xxxx.cloudapp.azure.com:3000/xxxx" >> /home/client/domains/xxxx.com/files/download_front.log 2>&1
001=52 * * * * env > /home/client/domains/xxxx.com/files/cron_env.log
MAILTO=
PATH=/usr/local/php82/bin:/home/client/.local/bin:/home/client/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/l
ocal/sbin:/usr/sbin
SHELL=/bin/bash
What am I doing wrong? And how to remove jailshell?
Thanks in advance!
Last edited: