From owner-freebsd-questions@freebsd.org Thu Aug 8 01:47:17 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6F190BF290 for ; Thu, 8 Aug 2019 01:47:17 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from out2-4.antispamcloud.com (out2-4.antispamcloud.com [185.201.17.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 463rpX1nVPz4d2Z for ; Thu, 8 Aug 2019 01:47:15 +0000 (UTC) (envelope-from freebsd.ed.lists@sumeritec.com) Received: from srv31.niagahoster.com ([153.92.8.106]) by mx65.antispamcloud.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1hvXWK-0001q0-Og; Thu, 08 Aug 2019 03:47:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sumeritec.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DDTKnRIpV06uPlH2ZxVwuVrD2CNzoUqyde/TVeoh9M4=; b=P45IHPOrEv52nOdP0+05IidxCw pcdTgNrOWdSWy/0ejHAq8WKc9U6wCp44544fQMzYLf1Qw08/sNW+/rp9F6p55Qbk50UF8PxYuOhAQ lf94sZV+hCdDjsFasRKv8AHHNAabYW7188L1LpSlaDk+m2lkU1WLFpzwT2CufvC1tNNxMooDc8CxR ObJ3vmHYJCyr1hVsGEodXUqg5aq4GfQvgNEv4O/Ge0uNXF4VW3lufRHFibfWBn8FIecSb7Lh1tVKb 1/5MK3teB8sfzjPrxAL56ZRwilf5SoWvHG+BWdIt/vB3F8cYJmk2YfOJV2WhJMDK46uXbjYTvQPjJ gqo0zUWg==; Received: from [114.125.102.23] (port=25188 helo=Ryzen1.sumeritec.com) by srv31.niagahoster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hvXVU-0001K2-Tc; Thu, 08 Aug 2019 08:46:26 +0700 Date: Thu, 8 Aug 2019 09:46:18 +0800 From: Erich Dollansky To: hw Cc: freebsd-questions@freebsd.org Subject: Re: howto allow anyone to poweroff? Message-ID: <20190808094618.787a7422.freebsd.ed.lists@sumeritec.com> In-Reply-To: <20190807183735.f4a87306c851426be6b799ca@gc-24.de> References: <20190807183735.f4a87306c851426be6b799ca@gc-24.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: freebsd.ed.lists@sumeritec.com X-Originating-IP: 153.92.8.106 X-Spampanel-Domain: out.niagahoster.com X-Spampanel-Username: niaga X-Spampanel-Outgoing-Class: unsure X-Spampanel-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0YiRRkpbHZ8F3zevhEShTfypSDasLI4SayDByyq9LIhVUZbR67CQ7/vm /hHDJU4RXkTNWdUk1Ol2OGx3IfrIJKyP9eGNFz9TW9u+Jt8z2T3KbWZRkzWKwRUtlOvGTrhK15Va Pc34M0OFpZt/lt1Bzl9PVZxi0M//jLY1o8usFf5tQaXPwIlI4yu/PH1NWDdGRRxw4tT2Ps0Qdoi2 FyJ5TSSnyNngCgYGUNH3hiQfRGMVCawBx/WQugpqlEbuVz0l4M3sodCXd6Deqt8UbbiaEBuCrXzs 2Igo5/4pKD5emkyrWOHM2f3zsyQR5KzaXLWxgSERbInMiTBIUBbQ/Dy6Ip4xQlNLYmzGmTH4gciw NqubYfHl7hgwflr5XGj4bPiDDnqetSjaJRdg5R9mti3aTDJra79olLL5dggvdNVdGAa74hJ877w3 BrOappvVwxNqXSTzyuSrQKwuNnzglEgDph79qNV/dgp+FFPSSde3UJEu4sw4+FXyxmIVea1OKVqa VhEWYzL8H724WTq8vrfAU1P+If6LSStWM+DiPz1lnI7uY3sCdadijThrZ7LiHH92/6a5zn3o6MtK 8pf0hPbAkeCZME8HeiOTBXPmeRcbGamAcxw3qqhc+N6cuEg4XWh5FoNHwrGczRWT0mMj9IWUP4WZ U04+YMx9HbM6umXBoIK/N3bZYEzgtWgIlrjkfWShG2LvAuZiee2RvYPUH2waSBd6mVOkKFPphrx3 vvbZeIK17QgdxtQsKWiN2eBEpDFg1YwvuObBU3QSkMhpxTQ3/7L+0BWXgkXg4qhoZcXVnyJVgtQC PWt4q24n88ps0GF/j+Akgrb43F6nn5uqV63ylsYuMIp9vz9gQfI3SlKSMXyKGFiNejfdI+v7lKdM 71LN4k4bFx/OFEC0rtKfdQ6emEJtALl6tE9e8KCaN2ryngAy6QF56xgOAgzWuSZEUw/ZFj072r3c +yNy8W5zouHBAZmwmMLQUkMTudtuP9IAptb98t3Xj/LzZ5s/OJg1L2asZ6HO21dPpxPhMFfON8bp bNeAItWRSJVJeghb10SIFSNKea8V+gJ/bmB++ShZerEVLg== X-Report-Abuse-To: spam@quarantine10.antispamcloud.com X-Rspamd-Queue-Id: 463rpX1nVPz4d2Z X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sumeritec.com header.s=default header.b=P45IHPOr; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd.ed.lists@sumeritec.com has no SPF policy when checking 185.201.17.4) smtp.mailfrom=freebsd.ed.lists@sumeritec.com X-Spamd-Result: default: False [-0.75 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[sumeritec.com:s=default]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.981,0]; NEURAL_HAM_LONG(-0.96)[-0.965,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sumeritec.com]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[sumeritec.com:+]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_SHORT(-0.37)[-0.369,0]; RECEIVED_SPAMHAUS_PBL(0.00)[23.102.125.114.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[4.17.201.185.list.dnswl.org : 127.0.3.1]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:49544, ipnet:185.201.17.0/24, country:NL]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-0.04)[ip: (1.35), ipnet: 185.201.17.0/24(-1.30), asn: 49544(-0.24), country: NL(0.01)]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Aug 2019 01:47:17 -0000 Hi, On Wed, 7 Aug 2019 18:37:35 +0200 hw wrote: > Hi, > > is there a way to allow ordinary users to poweroff a machine? I'd > like to automatically poweroff PXE booted clients once the user that > was logged in logs out after using it. an unconventional way would be to have a cron job checking if someone is locked in an power off the machine if none is logged in. You do not have problems with the access rights but might run into the problem that the machine shutsdown when somebody just has arrived at the machine. You also can catch the logout event and shut the machine down then. It is the problem with the access right again. Erich