From nobody Mon Sep 18 16:03:22 2023 X-Original-To: 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 4Rq8jJ0Jn1z4tPgK for ; Mon, 18 Sep 2023 16:03:32 +0000 (UTC) (envelope-from gpiero@rm-rf.it) Received: from charlotte.rm-rf.it (charlotte.rm-rf.it [149.28.228.198]) (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 4Rq8jG4kGkz3Py3 for ; Mon, 18 Sep 2023 16:03:30 +0000 (UTC) (envelope-from gpiero@rm-rf.it) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of gpiero@rm-rf.it designates 149.28.228.198 as permitted sender) smtp.mailfrom=gpiero@rm-rf.it; dmarc=none Received: from valentina.fdc.rm-rf.it (valentina.fdc.rm-rf.it [192.168.192.1]) by charlotte.fdc.rm-rf.it (OpenSMTPD) with ESMTP id 8f553b6a for ; Mon, 18 Sep 2023 18:03:23 +0200 (CEST) Received: from marcopolo.fdc.rm-rf.it (marcopolo.fdc.rm-rf.it [192.168.192.51]) by valentina.fdc.rm-rf.it (Postfix) with ESMTP id A96BC1F7D1 for ; Mon, 18 Sep 2023 18:03:22 +0200 (CEST) Received: by marcopolo.fdc.rm-rf.it (Postfix, from userid 1000) id 68E0F1C4706; Mon, 18 Sep 2023 18:03:22 +0200 (CEST) Date: Mon, 18 Sep 2023 18:03:22 +0200 From: Gian Piero Carrubba To: questions@freebsd.org Subject: Re: Quieting SSHd messages to the console Message-ID: <20230918160322.lbqq2qstfmdky3tw@marcopolo.fdc.rm-rf.it> References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.24 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.99)[-0.985]; NEURAL_HAM_LONG(-0.96)[-0.960]; R_SPF_ALLOW(-0.20)[+ip4:149.28.228.198]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[rm-rf.it]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:20473, ipnet:149.28.224.0/20, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4Rq8jG4kGkz3Py3 * [Mon, Sep 18, 2023 at 10:06:02AM +0000] Dan Mahoney (Gushi): >What goes to the console in /etc/syslog.conf is: > >*.err;kern.warning;auth.notice;mail.crit /dev/console > >Is there a way to say "everything else.err, but not auth.err"? "*.err;auth.none" if you do not want auth messages at all, "*.err;auth.crit" if you only want auth messages with level >error. "*.err;auth.notice;auth.!=err" should give you auth messages with (level >= notice and level != error), but I've not tested it. Ciao, Gian Piero.