It sounds similar to this issue.
https://github.com/cbsd/cbsd/issues/437 "default nice 1 prevents cron in jail
#437"
Does that help?
Regards,
Ronald.
Van: Sami Halabi <sodyn...@gmail.com>
Datum: dinsdag, 8 maart 2022 22:00
Aan: freebsd-sta...@freebsd.org, FreeBSD Current <freebsd-curr...@freebsd.org>,
freebsd-j...@freebsd.org, freebsd-...@freebsd.org, Oleg Ginzburg <olev...@olevole.ru>
Onderwerp: running cron jobs setpriority permission denied
Hi,
I have a jail ran by cbsd which has a cronjob like this:
* * * * * root /usr/local/directadmin/dataskq
I see every minute this error logged in /var/log/messages:
cron[71002]: setpriority 'root' (daemon): Permission denied
I see in ps xau that it runs but at nobody user
even when loggin to the jail I have:
cron[68825]: setpriority 'root' (daemon): Permission denied
login[68900]: setpriority 'root' (root): Permission denied
jexec[69404]: setpriority 'root' (root): Permission denied
# uname -a
FreeBSD j5.sody.com 12.3-RELEASE-p1 FreeBSD 12.3-RELEASE-p1 GENERIC amd64
what am I missing?
Sami
--
Sami Halabi
Information Systems Engineer
NMS Projects Expert, FreeBSD SysAdmin Expert
Asterisk Expert