autofs mounts always get mounted on sudo. why ?

Todd C. Miller Todd.Miller at
Tue Aug 8 11:58:16 EDT 2000

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