Cronjob notificatin sed: can't read /usr/share/Modules/init/.modulespath: No such file or directory / when using jailshell

mean

Verified User
Joined
Feb 14, 2007
Messages
108
Hi All

Cronjob notification
sed: can't read /usr/share/Modules/init/.modulespath: No such file or directory
though "Prevent Email" are not work when using jailshell


Cron command
/usr/local/php74/bin/php /home/XXXX/domains/domain.com/private_html/getdata.php >/dev/null 2>&1


User have received a large number of notify, Even though "Prevent Email" alert in Cronjob.

Email content :
can't read /usr/share/Modules/init/.modulespath: No such file or directory

1690396150391.png



PHP V7.4 (PHP-FPM) --- PHP cli no error
1690393703881.png



jailshell=2
1690393844849.png


# da info / AlmaLinux 8.8
version: 1.651
commit sha: c7b73cd05f44bddde4df9d27ea75aca4c82292a2
OS slug: linux_amd64
detected OS slug: rhel8_amd64
package: directadmin_c7b73cd05f44bddde4df9d27ea75aca4c82292a2_linux_amd64.tar.gz
gettext support: yes
gettext path: /usr/local/directadmin/data/lang
eol timestamp: 1880236800
eol time: Aug 1 00:00 2029

Found This the same problem.
 
Last edited:
i try enabled jailshell and 'Prevent Email' in Cronjob there are still email notifications being sent, it normal ?

User cron
*/1 * * * * curl https://xxx.com/test/test.sh | sh >/dev/null 2>&1


/var/log/exim/mainlog
2023-07-27 09:19:01 1qOqaj-00CfS4-22 <= [email protected] U=h516522 P=local S=1422 T="Cron <h516522@ns110> curl https://xxx.com/test/test.sh | sh >/dev/null 2>&1" from <[email protected]> for h516522
2023-07-27 09:19:01 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1qOqaj-00CfS4-22
2023-07-27 09:19:01 1qOqaj-00CfS4-22 => h516522 <[email protected]> F=<[email protected]> R=localuser T=local_delivery S=1557
2023-07-27 09:19:01 1qOqaj-00CfS4-22 Completed
 
Last edited:
I found the same problem, right now, just using script to delete those mail instead. but I want to find root cause of what was happen.
 
Back
Top