Announcement

Collapse
No announcement yet.

cron permission problems?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    Code:
    ./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:

    Code:
    cd /home/interworx/bin
    ls -la php
    Thanks,

    Chris
    Chris Wells
    InterWorx L.L.C. | http://interworx.com
    InterWorx Control Panel

    Comment


    • #3
      in the meantime, you can run:

      Code:
      /home/interworx/bin/cvspermsfix.pex
      Chris
      Chris Wells
      InterWorx L.L.C. | http://interworx.com
      InterWorx Control Panel

      Comment


      • #4
        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:
        Code:
        [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

        Comment


        • #5
          Thanks a lot.

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

          Phobia.

          Comment


          • #6
            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
            Paul Oehler
            InterWorx-CP | http://interworx.com
            InterWorx Control Panel

            Comment

            Working...
            X