Date: Wed, 9 Mar 2022 10:03:56 +0100 (CET) From: Ronald Klop <ronald-lists@klop.ws> To: Sami Halabi <sodynet1@gmail.com> Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org, freebsd-jail@freebsd.org, FreeBSD Current <freebsd-current@freebsd.org>, Oleg Ginzburg <olevole@olevole.ru> Subject: Re: running cron jobs setpriority permission denied Message-ID: <465361599.31.1646816636649@mailrelay> In-Reply-To: <CAEW%2BogYUaqXsMKynTsXnzEn7g2Yxkm5RYbhdSp9h=JhGYbGTPQ@mail.gmail.com> References: <CAEW%2BogYUaqXsMKynTsXnzEn7g2Yxkm5RYbhdSp9h=JhGYbGTPQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_30_1988691437.1646816636583 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 <sodynet1@gmail.com> Datum: dinsdag, 8 maart 2022 22:00 Aan: freebsd-stable@freebsd.org, FreeBSD Current <freebsd-current@freebsd.org>, freebsd-jail@freebsd.org, freebsd-net@freebsd.org, Oleg Ginzburg <olevole@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 ------=_Part_30_1988691437.1646816636583 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html><head></head><body>It sounds similar to this issue.<br /> <br /> https://github.com/cbsd/cbsd/issues/437 "default nice 1 prevents cron in jail #437"<br /> <br /> Does that help?<br /> <br /> Regards,<br /> Ronald.<br /> <br /> <p><strong>Van:</strong> Sami Halabi <sodynet1@gmail.com><br /> <strong>Datum:</strong> dinsdag, 8 maart 2022 22:00<br /> <strong>Aan:</strong> freebsd-stable@freebsd.org, FreeBSD Current <freebsd-current@freebsd.org>, freebsd-jail@freebsd.org, freebsd-net@freebsd.org, Oleg Ginzburg <olevole@olevole.ru><br /> <strong>Onderwerp:</strong> running cron jobs setpriority permission denied</p> <blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px"> <div class="MessageRFC822Viewer" id="P"> <div class="MultipartAlternativeViewer"> <div class="TextHTMLViewer" id="P.P.P"> <div>Hi, <div> </div> <div>I have a jail ran by cbsd which has a cronjob like this:</div> <div>* * * * * root /usr/local/directadmin/dataskq</div> <div> </div> <div>I see every minute this error logged in /var/log/messages:</div> <div>cron[71002]: setpriority 'root' (daemon): Permission denied</div> <div> </div> <div>I see in ps xau that it runs but at nobody user</div> <div> </div> <div>even when loggin to the jail I have:</div> <div>cron[68825]: setpriority 'root' (daemon): Permission denied</div> <div>login[68900]: setpriority 'root' (root): Permission denied</div> <div>jexec[69404]: setpriority 'root' (root): Permission denied</div> <div> </div> <div># uname -a<br /> FreeBSD <a href="http://j5.sody.com">j5.sody.com</a> 12.3-RELEASE-p1 FreeBSD 12.3-RELEASE-p1 GENERIC amd64</div> <div> </div> <div>what am I missing?</div> <div> </div> <div>Sami <div> </div> -- <div class="gmail_signature"> <div> <div> <div>Sami Halabi <div>Information Systems Engineer</div> <div>NMS Projects Expert, <span style="font-size:12.8px">FreeBSD SysAdmin Expert</span></div> <div>Asterisk Expert</div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </blockquote></body></html> ------=_Part_30_1988691437.1646816636583--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465361599.31.1646816636649>