From nobody Thu Jun 27 19:44:50 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W98DT6BZVz5QHSm for ; Thu, 27 Jun 2024 19:45:13 +0000 (UTC) (envelope-from dsh@bamus.cz) Received: from fhigh7-smtp.messagingengine.com (fhigh7-smtp.messagingengine.com [103.168.172.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W98DT49ddz4pkc for ; Thu, 27 Jun 2024 19:45:13 +0000 (UTC) (envelope-from dsh@bamus.cz) Authentication-Results: mx1.freebsd.org; none Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 7790A11401A5; Thu, 27 Jun 2024 15:45:11 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute6.internal (MEProxy); Thu, 27 Jun 2024 15:45:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bamus.cz; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1719517511; x=1719603911; bh=tqEr0CY73z F7zSCQ+TnnYbeNdqMbYhI1yITHPHB92ug=; b=NCWNcNdAK5sF49sy4mF7/7sr9G 6wPuJjul2f3g21pDrrZR85ODTIX0HwFY1LkAT21gbO7KoSjsE9zkc9tad8Etfxn9 JhGrQydXpoOZSwk0dNtKTnIYIc2BeL4tqrSUxGyuEe0EY2uVXlhWP9nPlJNgDdI6 2J+kbmbRCEDZlCO+s9IYh4H7gLxckl+hzvG3s8rdm+v/jouOU+IJEWcrdtiVOE8I 88k+v56CViMiL9KunvaDyp6tK6wNnz9JOAo7anTGXAzeIX5pRUaq68FoHlmRPEv0 qQ1teglPY30jTgV1zoo+8C1bkxdx5AP36oZkgR+9Jefk5b+rGkAazwBB794Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719517511; x=1719603911; bh=tqEr0CY73zF7zSCQ+TnnYbeNdqMb YhI1yITHPHB92ug=; b=aqcCY2yMVPx2Oydetbhweh+s5d7rzv+YpzFflCH/sh5K wV25mc3ccW9xaQkK0ani/LVxus5TUopcDtmtOFvCpJ5ypx856zYLiIEazpapSGmD wVia+LsnrQtapoI3P9hM2ur1857TZiGWritVVfvcVYpoSz5dN53iR9DjAQEnx2Tp TskwuhiS1hYt23bWUBM/qqnP1btYFHFpw5tEnT0CoCYRfj/6+sm1HqyfM0BksbA8 yF8aqWRZ3hqzg15dzyPthiCxcz+KFippaYg5y7Jl81loIwAJeCMPE8lL2fAK3O3E SWrrL7lQjJ8+61EmMXW3vTUthPQmKU3cajzXtk/nBg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrtdeggddugeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfffgv nhhishcuufhhrghpohhshhhnihhkohhvfdcuoegushhhsegsrghmuhhsrdgtiieqnecugg ftrfgrthhtvghrnhepudelveekleefuefhudefteehvdfhudeiudffieduffeghedufeeg tdejkefhgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepughshhessggrmhhushdrtgii X-ME-Proxy: Feedback-ID: i3bf9476b:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 303A636A0075; Thu, 27 Jun 2024 15:45:11 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-538-g1508afaa2-fm-20240616.001-g1508afaa List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Message-Id: <9fcb9b8a-6318-44c3-aee0-be511ed07c65@app.fastmail.com> In-Reply-To: References: <98ef9c72-1c94-471c-88e9-8e4957bfa9f9@app.fastmail.com> Date: Thu, 27 Jun 2024 21:44:50 +0200 From: "Denis Shaposhnikov" To: "Paul Procacci" Cc: freebsd-questions@freebsd.org Subject: Re: Login 'postgres': Login class 'default': Setting priority failed: Permission denied Content-Type: text/plain X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US] X-Rspamd-Queue-Id: 4W98DT49ddz4pkc Hi, On Thu, 27 Jun 2024, at 21:29, Paul Procacci wrote: >> nice -n 5 doas id >> Jun 27 21:08:57 db doas[33054]: Login 'root': Login class 'root': Setting priority failed: Permission denied > The error message is a legit error, that is, you cannot set a priority > of a process from within the jail. What do you mean? Just nice -5 id inside a jail doesn't generate the log message, but nice -5 doas id does. That was just an example. Actually Icinga runs a command, but before that it does `nice(5)`. That command uses doas and calls a script and that script uses su. I'm not setting a priority directly. In 14.0 all of that didn't generate log messages. > It's just newly logged. Aha! Thanks for the info. OK, how could I prevent it from logging it? I don't need it in the log every minute.