Re: problemi con $PATH
[skizzHG, 15:30, lunedì 17 marzo 2008]
> alla fine ho risolto mettendo 'export
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
> nel /root/.bashrc
>
> quel che mi chiedo e' cosa possa aver provocato cio'
Da me il controllo è fatto in /etc/profile.
L'impostazione di PATH è soggetta ad un controllo sull'uid.
> # /etc/profile: system-wide .profile file for the Bourne shell
> (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1),
> ...).
>
> if [ "`id -u`" -eq 0 ]; then
> PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
> /usr/bin/X11"
> else
> PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
> fi
--
DaC
Reply to: