autofs mounts always get mounted on sudo. why ?

john_farinelli at john_farinelli at
Tue Aug 8 13:14:42 EDT 2000

Thanks for the reply. It has helped somewhat, but I still have some mounts that 
are being made. For example, I have set my PATH to "", and execute the 
   /opt/sudo/bin/sudo /usr/bin/su -
and after becoming root, a bdf still shows a mount being made. The mount is NOT 
busy, in that I can immediately umount it, but its still a problem for us. Any 
other ideas ?


John Farinelli

> -----Original Message-----
> From: Todd.Miller at [mailto:Todd.Miller at]
> Sent: Tuesday, August 08, 2000 11:58
> To: john_farinelli at
> Cc: sudo-users at; Todd.Miller at
> Subject: Re: autofs mounts always get mounted on sudo. why ?
> In message <H000046710fcaf75 at MHS>
>  so spake  (john_farinelli):
> > We have an environment that uses autofs (dynamic mounts 
> like automount). If I
> >  
> > start with the system where non of the NFS mounts defined 
> in our 
> > file are mounted, then I run sudo, I find that ALL of the 
> mounts are now 
> > mounted. I have checked the PATH variable for the user we 
> are sudo-ing to, an
> > d 
> > find nothing that looks in these locations. Furthermore, if 
> I "su -" to that 
> > user no NFS mounts get put in place.
> You should look at the path of the user that is calling sudo. 
>  Sudo will
> search the user's path looking for the executable to run...
>  - todd

More information about the sudo-users mailing list