From mboxrd@z Thu Jan 1 00:00:00 1970 From: thomas.wallrafen@post.rwth-aachen.de Subject: Re: sudo'ers, I need help! Date: Mon, 21 Jul 2003 09:52:01 +0000 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030721095201.GB15867@isaak> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary=yEPQxsgoJgBvi8ip; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: In-reply-to: Content-Disposition: inline List-Id: To: linux-admin@vger.kernel.org --yEPQxsgoJgBvi8ip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Benjamin! Thus spoke Benjamin Walkenhorst: > Or might sudo not be what I am looking for? Well, sudo is great for a job like this. For the case you are the only user who wants to run the /sbin/lilo command i'd suggest you append the following line to your /etc/sudoers file (using the visudo command as root): $USERNAME $HOSTNAME =3D (root) /sbin/lilo Please substitute the user and hostname variables to the appropriate values of your local configuration. In the case you want to allow multiple users use one command you have to define an user-alias, a command alias and, if the command is used on multiple hosts, a host alias like this: User_Alias LILO_USERS =3D user1, user2, ... , usern Cmnd_Alias LILO_CMND =3D /sbin/lilo Host_Alias LILO_HOSTS =3D hosts1, host2, ..., hostn LILO_USERS LILO_HOSTS =3D (root) LILO_CMND Note that the /etc/sudoers file is case-sensitive! regards, thomas --=20 /"\ \ / ASCII ribbon campaign X against HTML-mail / \ --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/G7fBIOe0bzcBGv0RAgkEAJ9cXaLMofSbu3nuWk2dAJT0IEEGkgCeK/Tu yEP6gfPKOh5SAd+udR5R17I= =VKJl -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip--