On Friday 10 January 2003 11:59 am, wwp wrote:
> > Why ?!? If I'm a normal user then I really shouldn't have /sbin in my
> > PATH just because I run 'sudo startmodem'. The /best/ is to update PATH
> > in startmodem, either with a simple one-liner or with something more
> > complex.
>
> Right, If you use sudo startmodem, you don't need to modify the PATH of the
> normal user.
> root's path should include /sbin anyway. Does it?

Not when using sudo, man sudo:

 To prevent command spoofing, sudo checks "." and "" (both denoting cur‐
       rent directory) last when searching for a command in the user’s PATH
       (if one or both are in the PATH).  Note, however, that the actual PATH
       environment variable is not modified and is passed unchanged to the
       program that sudo executes.

> Of course we may consider modifying the PATH in startmodem, there will
> probably be a vote for this :-).

Angus



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Driver Linux pour modem ECI ADSL USB: http://eciadsl.flashtux.org
Archives de cette liste de diffusion: http://liste.eci.free.fr
Pour se desinscrire: mailto:[EMAIL PROTECTED]?subject=unsubscribe  
        
        
        
        
        
        

Répondre à