centos suexec breaks scripts from running bad! Any help?

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
aus-city
Forum Regular
Forum Regular
Posts: 685
Joined: Thu Oct 26, 2006 11:56 pm

centos suexec breaks scripts from running bad! Any help?

Unread post by aus-city »

Damn suexec is blocking my scripts and causing issues.

[2011-02-25 08:58:28]: uid: (10001/aus-city) gid: (505/psacln) cmd: ultimatebb.cgi
[2011-02-25 08:58:28]: target uid/gid (10001/505) mismatch with directory (10001/504) or program (10001/505)
[2011-02-25 08:58:45]: uid: (10001/aus-city) gid: (505/psacln) cmd: ultimatebb.cgi
[2011-02-25 08:58:45]: target uid/gid (10001/505) mismatch with directory (10001/504) or program (10001/505)
[2011-02-25 08:59:01]: uid: (10001/aus-city) gid: (505/psacln) cmd: ultimatebb.cgi
[2011-02-25 08:59:01]: target uid/gid (10001/505) mismatch with directory (10001/504) or program (10001/505)
[2011-02-25 09:00:01]: uid: (10001/aus-city) gid: (505/psacln) cmd: auto_pickup.pl
[2011-02-25 09:00:57]: uid: (10001/aus-city) gid: (505/psacln) cmd: mail.cgi
[2011-02-25 09:01:27]: uid: (10001/aus-city) gid: (505/psacln) cmd: mail.cgi

How can I fix this. For now I renamed /usr/sbin/suexec to suexec.disabled and restarted httpd, at least stuff runs!

What's a proper way to fix it?

Thanks!
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: centos suexec breaks scripts from running bad! Any help?

Unread post by hostingguy »

change the file ownership to match the directory owner or vice versa.
aus-city
Forum Regular
Forum Regular
Posts: 685
Joined: Thu Oct 26, 2006 11:56 pm

Re: centos suexec breaks scripts from running bad! Any help?

Unread post by aus-city »

But that will break plesk, as these scripts are in the domains /cgi-bin and uploaded with the domain user, the directory on cgi-bin is not the same group as the domain, its defaulted that way by plesk.
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: centos suexec breaks scripts from running bad! Any help?

Unread post by hostingguy »

Plesk wont care unless you try and use the file manager to manage the files.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: centos suexec breaks scripts from running bad! Any help?

Unread post by faris »

Have you used the Plesk-specific suexec or might you have accidentally overwritten it with the default centos one?
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
aus-city
Forum Regular
Forum Regular
Posts: 685
Joined: Thu Oct 26, 2006 11:56 pm

Re: centos suexec breaks scripts from running bad! Any help?

Unread post by aus-city »

It's the plesk one, I verified that firstly.

The scripts live in a sub directory in cgi-bin and these are the domain user/group the same as httpdocs.

I will try changing their group to match cgi-bin

I put them in cgi-bin as they don't run in httpdocs.
Post Reply