Greetings, I just downloaded the mmonit from mmonit.com site on my CentOS box untarred-unizipped it. As per the documentation, I dutifully typed ./bin/mmonit and it is refusing to run. I am running this as root and SELinux is disabled. running it with strace spews the following (in entireity): [begin] # strace ./bin/mmonit execve("./bin/mmonit", ["./bin/mmonit"], [/* 28 vars */]) = -1 EACCES (Permission denied) dup(2) = 3 fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR) fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 2), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fed000 _llseek(3, 0, 0xbfd7e7b4, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission denied ) = 32 close(3) = 0 munmap(0xb7fed000, 4096) = 0 exit_group(1) = ? [end strace] What am I missing here? Thanks and Regards Rajagopal
From: Rajagopal Swaminathan <raju.rajsand at gmail.com>> As per the documentation, I dutifully typed ./bin/mmonit > and it is refusing to run. I am running this as root and SELinux is disabled. > ... > (Permission denied) > ... > What am I missing here?Did you check the file and directory permissions? JD
SOLVED! On Tue, Mar 24, 2009 at 3:46 PM, Rajagopal Swaminathan <raju.rajsand at gmail.com> wrote:> Greetings, >Sorry for answering my own mail Turns out that the location where the file is happens to be another partition mounted with user option. And that enables noexec. remounted the partition with exec option and things seem to be working now. IT flummoxed me for a moment... Thanks and Regards Rajagopal
On Tue, Mar 24, 2009 at 5:16 AM, Rajagopal Swaminathan <raju.rajsand at gmail.com> wrote:> I just downloaded the mmonit from mmonit.com site on my CentOS box > untarred-unizipped it. > As per the documentation, I dutifully typed > ./bin/mmonit > and it is refusing to run. I am running this as root and SELinux is disabled.There is something you should have installed, first, that was recommended to me, by someone on the list, a month or so ago. I think the name is checkinstall and it comes from RPMForge. It monitors what you install, so you can uninstall it. If checkinstall is not the name of the package, I hope someone on the list will provide the correct name for you. You can install it with Yum, if you have the RPMForge Repository configured. The other problem(s) you are having, someone else will hopefully help you with. <snip>