From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 7 Apr 2003 11:09:28 +0400 From: Andrey Brindeew To: community@altlinux.ru Message-ID: <20030407070928.GA8526@abr.tool.ru> Mail-Followup-To: community@altlinux.ru References: <20030401065245.GD3786@abr.tool.ru> <3E8C62BE.70307@comail.ru> <20030404020306.1542edae.laedel@pochtamt.ru> <3E8EF0A3.2060404@comail.ru> <20030405234058.09e2e466.laedel@pochtamt.ru> <3E8F0F9A.7000605@comail.ru> <20030406011528.716bf692.laedel@pochtamt.ru> <3E8F30A4.20809@comail.ru> <20030406160809.GA13088@abr.tool.ru> <3E9122DD.3000507@comail.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <3E9122DD.3000507@comail.ru> Subject: [Comm] Re: ALTM 2.2 =?koi8-r?B?zMHNxdLTy8nKINfP?= =?koi8-r?B?0NLP0w==?= Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Apr 07, 2003 at 11:03:57AM +0400, Alex A T wrote: > [user@localhost user]$ sudo /sbin/poweroff > password > User is not in the sudoers file. This icident will be reported. > А можно ли сделать чтобы просто работала команда halt, poweroff, без > всяких sudo /sbin/ останов | перезагрузка машины есть действие, требующее административных привилегий, вы это понимаете? мой пример ниже. Я не проверял, но работать должен. Это нужно набирать в том файле, который выводит команда visudo, изданная из-под суперпользователя (root). # Cmnd alias specification Cmnd_Alias REB_HALT = /sbin/halt, /sbin/shutdown, /sbin/poweroff, /sbin/reboot # User privilege specification root ALL=(ALL) ALL abr ALL = NOPASSWD: REB_HALT -- WBR, Andrey Brindeew. "No one person can understand Perl culture completely" (C) Larry Wall. --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Get my public key at http://abr.pp.ru/gpg.html iD8DBQE+kSQn3gaCZ4hbZncRAowmAJ98ic8MYVDp8sYFcG9Wsa5Pc/I8+gCbBMYQ 5BfVzU1+WmMCWonAHViu5sE= =2dyU -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--