Bug 119

Summary: sudo: unable to exec ./<executable>: No such file or directory
Product: Sudo Reporter: Jo Vark <jo_vark>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: normal    
Priority: normal    
Version: 1.6.7   
Hardware: PC   
OS: Linux   

Description Jo Vark 2003-08-10 13:01:07 MDT
I am creating an application that requires su access for some of the libraries. 
After compiling the code, I use sudo to runthe executable. If I do an "ls" the 
executable appears in the list, but if I run sudo and try to execute the file I 
get the error message:
sudo: unable to exec ./<executable>: No such file or directory
If I try the same "sudo ./<executable>" command a few times, the program 
executes. This happens at random times. sometimes the application is run without 
any problems.
Comment 1 Todd C. Miller 2004-01-09 01:43:42 MST
This is not a bug in sudo.  My guess is that there is an automounter involved 
and you are executing the binary via a path that does not inform the automounter 
and thus things get unmounted underneath you.