Bugzilla – Bug 119
sudo: unable to exec ./<executable>: No such file or directory
Last modified: 2004-01-09 05:43:42 MST
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.
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.