From owner-freebsd-questions Thu Feb 22 22:33:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id 5838A37B4EC for ; Thu, 22 Feb 2001 22:33:12 -0800 (PST) (envelope-from wash@iconnect.co.ke) Received: from [212.22.163.2] (helo=poeza.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 14WBl7-000A8x-00; Fri, 23 Feb 2001 09:31:17 +0300 Received: from wash by poeza.iconnect.co.ke with local (Exim 3.20 #1) id 14WBoL-000HBN-00; Fri, 23 Feb 2001 09:34:37 +0300 Date: Fri, 23 Feb 2001 09:34:37 +0300 From: Odhiambo Washington To: freebsd-questions@freebsd.org Cc: jessie@power-jessie.net Subject: Re: authorized shutdown Message-ID: <20010223093437.B64643@poeza.iconnect.co.ke> Mail-Followup-To: Odhiambo Washington , freebsd-questions@freebsd.org, jessie@power-jessie.net References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="2B/JsCI69OhZNC5r" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from "Power JeSsIe!" on Fri, Feb 23, 2001 at 11:54:41AM -0800 X-Operating-System: FreeBSD poeza.iconnect.co.ke 4.2-STABLE FreeBSD 4.2-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Mombasa, KE, East Africa Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --2B/JsCI69OhZNC5r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Power JeSsIe! [20010223 06:44]: writing on the = subject 'RE: authorized shutdown' Power>=20 Power> this may sound a newbie question but i just wanna know Power> How can i limit the 'shutdown' command=20 Power> (and the pressing of 'ctrl-alt-del' keys as well ) Power> to authorized users only? If you add this option to the kernel config file and recompile, it will make CTRL+ALT+DEL a gone case, so noone, even you as root, will ever reset the system with those keys. options SC_DISABLE_REBOOT #Disable reboot by CTRL+ALT+DEL For the shutdown, it should not work for any user, unless you have given them that ability to do that in 'sudo' - please think about sudo, it is in the ports tree -- /usr/ports/security/sudo=20 /usr/local/etc/sudoers is the file to grant such privileges but you just don't edit it using any other text editor. You must use the command 'visudo' as root to edit. HTH -Wash -- Odhiambo Washington Inter-Connect Ltd., wash@iconnect.co.ke 5th Flr Furaha Plaza Tel: 254 11 222604 Nkrumah Rd., Fax: 254 11 222636 PO Box 83613 MOMBASA, KE. What a person believes is not as important as how a person believes. -Timot= hy=20 Virkkala=20 --2B/JsCI69OhZNC5r Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6lgR9A2k+MNyI/bERAjOlAKCDQR/wjY/PKuS4QDMvwQNZI3tDogCeL9J7 pHN6WH6drTBfUMhkyCDSlkI= =jyp3 -----END PGP SIGNATURE----- --2B/JsCI69OhZNC5r-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message