cron permission problems?

I just recieved about 6 emails that contained these lines.

./iworx.pex: line 5: /home/interworx/bin/php: Permission denied
./iworx.pex: line 5: exec: /home/interworx/bin/php: cannot execute: Permission denied

any help would be great.

Thanks.

Phobia.


./iworx.pex: line 5: /home/interworx/bin/php: Permission denied
./iworx.pex: line 5: exec: /home/interworx/bin/php: cannot execute: Permission denied

That’s very odd phobia, can you do the following for me and paste the output:


cd /home/interworx/bin
ls -la php

Thanks,

Chris

in the meantime, you can run:


/home/interworx/bin/cvspermsfix.pex

Chris

I’ve seen the same thing on my machine.

A quick investigation before finding this thread revealed the permissions were wrong on /home/interworx/bin/php following the “php-iworx-4.3.9-1.iworx” update my machine received at 3:21 today. Since that time I have received at least an email every 5 minutes (57 all up).

This is what I found and how I fixed it:

[root@marvin bin]# pwd
/home/interworx/bin
[root@marvin bin]# ls -la php decoder*
-rwxr-x---    1 root     iworx         196 Oct 12  2003 decoder.sh
-rws------    1 root     iworx     2188312 Sep 27 01:28 php
[root@marvin bin]# rpm -qf php
php-iworx-4.3.9-1.iworx
[root@marvin bin]# chmod g+rx php
[root@marvin bin]# ls -la php decoder*
-rwxr-x---    1 root     iworx         196 Oct 12  2003 decoder.sh
-rwsr-x---    1 root     iworx     2188312 Sep 27 01:28 php

Since allowing the iworx group read execute permission on the php binary I have not received any email from cron.

I assume the
/home/interworx/bin/cvspermsfix.pex
executable would have fixed this too if run as root.

I hope what I’ve done is ok, and if so I hope it helps others.

Thanks for your help
Robert

Thanks a lot.

I’l see if that works in a few minutes.

Phobia.

Hi Robert, yes, doing what you did to fix the problem is fine. The cvspermsfix script just makes sure all the files have the correct permissions.

Paul