Web Hosting Talk







View Full Version : Permission


jsen
09-01-2004, 03:20 PM
Posted on cpanel, poor response.
Anyway here's my question.

I posted this around 24 hrs ago.

-------------
There's an option in WHM
Fix Insecure Permissions (Scripts)

I clicked that and it made 1 file (.cgi) chmodded 666 and can't be used.
So i chmodded that back into 755 everything is ok again.

A few hours later.. the file was auto-chmodded back to 666.

I did a upcp and last couple line came out..

Scanning suexec_log..............Done
Fixing permissions on /home/nnn/public_html/cgi-bin/poll/post.cgi....Done

Is this permanent? Will it keep chmod'ding 666 it every XX hours?
If it does, how do I disable it?

----------

Ok it's happening again.. seems it auto-chmods this 1 file to 666 making it useless.

I tailed suexec_log for the whole day..

[2004-09-02 03:11:13]: error: file is writable by others: (/home/nnn/public_html/cgi-bin/poll/post.cgi)

Anyone?

optimumd
09-01-2004, 08:23 PM
I could be incorrect but would it be possible to setup a cron job to chmod the file every x hours?

Also is it possible there is some security hole in the script which is why cpanel would be disabling it when you update cpanel and fix insecure scripts?

I'm not sure on either point honestly, but prehaps a couple things you may want to consider. Someone else here may have more specific information.

jsen
09-02-2004, 05:12 AM
I'm currently doing that now. Seems the way to go for now.