[ Rispondo in lista, mi pare più corretto nei confronti di chi legge la
  discussione ] 

Alberto <[EMAIL PROTECTED]> writes:

>> $ sudo su -
>> # env | grep PATH
>>
>> e vedi il path corretto.
>
> # env | grep PATH
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

allora devi indagare su come vengono assegnati i path a PATH per root,
AFAIK su - significa carica l'enviromente come si facesse login, ma da
man su leggo che:

       -, -l, --login
           Provide an environment similar to what the user would expect had
           the user logged in directly.

           When - is used, it must be specified as the last su option. The
           other forms (-l and --login) do not have this restriction.

potrebbe essere quel similar l'inghippo.

>> Provato con
>>
>> Defaults        env_reset
>> Defaults        env_keep += "PATH"
>>
>> potrebbe essere che il path venga cancellato visto che env_reset:
>
> provato ed ecco i risultati:
> $ sudo env | grep PATH
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
>
> $ sudo su -
> #

bo, a sto punto non saprei aiutarti.

Ciao, Micky
-- 
UNIX is basically a simple operating system, but you have to 
be a genius to understand the simplicity.  -- Dennis Ritchie


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[EMAIL PROTECTED] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [EMAIL PROTECTED]

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Rispondere a