PDA

View Full Version : cron permission problems?


phobia
09-27-2004, 02:26 AM
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-Chris
09-27-2004, 02:28 AM
./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

IWorx-Chris
09-27-2004, 04:51 AM
in the meantime, you can run:


/home/interworx/bin/cvspermsfix.pex


Chris

robert
09-27-2004, 05:52 AM
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

phobia
09-27-2004, 06:31 AM
Thanks a lot.

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

Phobia.

IWorx-Paul
09-27-2004, 10:36 AM
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