Le Wed, 1 Sep 2010 11:01:40 +0200, Le Cerdocyon <[email protected]> a écrit :
> La commande s'éxécute bien, mais je n'ai pas l'environnement de
> james. (la commande ne trouve pas les billes de james en l'ocurrence
> une librairie).
J'avais raté ce morceau de la question, mais en relisant le man de
sudoers, je vois ça :
Tag_Spec ::= ('NOPASSWD:' | 'PASSWD:' | 'NOEXEC:' | 'EXEC:' |
'SETENV:' | 'NOSETENV:' )
suivi un peu plus loin de ça :
SETENV and NOSETENV
These tags override the value of the setenv option on a
per-command basis. Note that if SETENV has been set for a
command, any environment variables set on the command line way
are not subject to the restrictions imposed by env_check,
env_delete, or env_keep. As such, only trusted users should be
allowed to set variables in this manner. If the command matched
is ALL, the SETENV tag is implied for that command; this default
may be overridden by use of the UNSETENV tag.
Ça ne serait pas une piste à explorer ? Je n'ai pas testé de mon côté,
mais as-tu déjà essayé ça ?
--
(o< -!
//\ Happy debian user !
V_/_ http://www.debian.org/
signature.asc
Description: PGP signature

