Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2022 13:24:15 +0200
From:      Sami Halabi <sodynet1@gmail.com>
To:        Ronald Klop <ronald-lists@klop.ws>
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:  <CAEW%2Boga=i%2B3U0Hceq1cys8sV2Yv9K2MqLH4hJ5caQdJcKO=qbQ@mail.gmail.com>
In-Reply-To: <465361599.31.1646816636649@mailrelay>
References:  <CAEW%2BogYUaqXsMKynTsXnzEn7g2Yxkm5RYbhdSp9h=JhGYbGTPQ@mail.gmail.com> <465361599.31.1646816636649@mailrelay>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000d9004c05d9c7565a
Content-Type: text/plain; charset="UTF-8"

Hi,
Thank You!! indeed that helped!

Sami

On Wed, Mar 9, 2022 at 11:03 AM Ronald Klop <ronald-lists@klop.ws> wrote:

> 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
>
>

-- 
Sami Halabi
Information Systems Engineer
NMS Projects Expert, FreeBSD SysAdmin Expert
Asterisk Expert

--000000000000d9004c05d9c7565a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div>Thank You!! indeed that helped!</div><div><br></di=
v><div>Sami</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas=
s=3D"gmail_attr">On Wed, Mar 9, 2022 at 11:03 AM Ronald Klop &lt;<a href=3D=
"mailto:ronald-lists@klop.ws">ronald-lists@klop.ws</a>&gt; wrote:<br></div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex"><div>It sounds similar to=
 this issue.<br>
<br>
<a href=3D"https://github.com/cbsd/cbsd/issues/437" target=3D"_blank">https=
://github.com/cbsd/cbsd/issues/437</a> &quot;default nice 1 prevents cron i=
n jail #437&quot;<br>
<br>
Does that help?<br>
<br>
Regards,<br>
Ronald.<br>
<br>
=C2=A0
<p><strong>Van:</strong> Sami Halabi &lt;<a href=3D"mailto:sodynet1@gmail.c=
om" target=3D"_blank">sodynet1@gmail.com</a>&gt;<br>
<strong>Datum:</strong> dinsdag, 8 maart 2022 22:00<br>
<strong>Aan:</strong> <a href=3D"mailto:freebsd-stable@freebsd.org" target=
=3D"_blank">freebsd-stable@freebsd.org</a>, FreeBSD Current &lt;<a href=3D"=
mailto:freebsd-current@freebsd.org" target=3D"_blank">freebsd-current@freeb=
sd.org</a>&gt;, <a href=3D"mailto:freebsd-jail@freebsd.org" target=3D"_blan=
k">freebsd-jail@freebsd.org</a>, <a href=3D"mailto:freebsd-net@freebsd.org"=
 target=3D"_blank">freebsd-net@freebsd.org</a>, Oleg Ginzburg &lt;<a href=
=3D"mailto:olevole@olevole.ru" target=3D"_blank">olevole@olevole.ru</a>&gt;=
<br>
<strong>Onderwerp:</strong> running cron jobs setpriority permission denied=
</p>

<blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5px;bor=
der-left:2px solid rgb(0,0,0);margin-right:0px">
<div id=3D"gmail-m_-7946644032132543898P">
<div>
<div id=3D"gmail-m_-7946644032132543898P.P.P">
<div>Hi,
<div>=C2=A0</div>

<div>I have a jail ran by cbsd which has a cronjob=C2=A0like this:</div>

<div>* * * * * root /usr/local/directadmin/dataskq</div>

<div>=C2=A0</div>

<div>I see every minute this error logged in /var/log/messages:</div>

<div>cron[71002]: setpriority &#39;root&#39; (daemon): Permission denied</d=
iv>

<div>=C2=A0</div>

<div>I see in ps xau that it runs but at nobody user</div>

<div>=C2=A0</div>

<div>even when loggin=C2=A0to the jail I have:</div>

<div>cron[68825]: setpriority &#39;root&#39; (daemon): Permission denied</d=
iv>

<div>login[68900]: setpriority &#39;root&#39; (root): Permission denied</di=
v>

<div>jexec[69404]: setpriority &#39;root&#39; (root): Permission denied</di=
v>

<div>=C2=A0</div>

<div># uname -a<br>
FreeBSD <a href=3D"http://j5.sody.com" target=3D"_blank">j5.sody.com</a> 12=
.3-RELEASE-p1 FreeBSD 12.3-RELEASE-p1 GENERIC =C2=A0amd64</div>

<div>=C2=A0</div>

<div>what am I missing?</div>

<div>=C2=A0</div>

<div>Sami
<div>=C2=A0</div>
--

<div>
<div>
<div>
<div>Sami Halabi
<div>Information Systems Engineer</div>

<div>NMS Projects Expert,=C2=A0<span style=3D"font-size:12.8px">FreeBSD Sys=
Admin Expert</span></div>

<div>Asterisk Expert</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote></div></blockquote></div><br clear=3D"all"><div><br></div>-- <=
br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><div di=
r=3D"ltr">Sami Halabi<div>Information Systems Engineer</div><div>NMS Projec=
ts Expert,=C2=A0<span style=3D"font-size:12.8px">FreeBSD SysAdmin Expert</s=
pan></div><div>Asterisk Expert</div></div></div></div></div>

--000000000000d9004c05d9c7565a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEW%2Boga=i%2B3U0Hceq1cys8sV2Yv9K2MqLH4hJ5caQdJcKO=qbQ>