PATH di sudo
Ciao,
Questo è il mio PATH:
$ env | grep PATH
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/schily/bin
Questo invece è quello di sudo
$ sudo env | grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
come faccio a fare in modo che il mio PATH coincida con quello di sudo?
ho provato ad aggiungere
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_keep += "PATH"
#Defaults env_reset
ma non ha funzionato
Qualcuno sa dove sudo setta il suo PATH?
p.s.
Sapete anche dove viene settato il PATH normale,
per poter aggiungere :/opt/schily/bin
ho dovuto aggiungere in bash.bashrc
export PATH=$PATH:/opt/schily/bin
grazie
AG
Reply to: