[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [ABUL/tech] sudo et Debian



Le 14.01.2006 14:19:23, Bernard Mayer a écrit :
Bonjour.

Dans l'idee d'eteindre une machine (Debian stable) a distance par le
web, j'experimente sudo, avec un utilisateur standard.

donc /etc/sudoers =
Host_Alias      LOCALHOST = 127.0.0.1
User_Alias      MOI = toto
Cmnd_Alias      ONOFF = /sbin/reboot, /sbin/halt, /sbin/shutdown
root    ALL=(ALL) ALL
MOI     LOCALHOST = ONOFF

puis, en étant M. Toto,
toto $ sudo reboot

Et le systeme me repond :
toto is not allowed to run sudo on machine2. This incident will be reported

Quelque chose m'a echappé en lisant la doc ?

Merci d'avance pour vos lumieres.

Est-ce que l'utilisateur toto a bien été déloggué après la modif du fichier sudoers ?

Jean-Luc

Attachment: pgpZvah0Utxcd.pgp
Description: PGP signature


Reply to: