[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Error executing script on Qube2



----- Original Message -----
From: <kevin@xxxxxxxxxxxxxx>
>
> When I try to execute a script on a Qube2 I get the following message:
>
> CGIWrap Error: Execution of this script not permitted
> Execution of (/home/groups/home/cgi-bin/smart.cgi) is not permitted for
the
> following reason:
>
> Script is group writable.
>
> How do I resolve this?  I did do a chmod 775 on the files and I still get
> this message.

Try chmod'ing the file to 755 (rwxr-xr-x).  That's all the permissions
needed to execute a cgi script, and in this case CGIWrap will throw out an
error if a script is group and/or world writable.

Here's a basic reference table for file permissions:

       U  G  W  -(U = User, G = Group, W = World/Other)
    ----------
    4  r  r  r  -read
    2  w  w  w  -write
    1  x  x  x  -execute
    ----------
chmod= n  n  n

Calculate the chmod # by adding each columns permissions, where read = 4,
write = 2 and execute = 1.

BC