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!
centos suexec breaks scripts from running bad! Any help?
-
- Forum Regular
- Posts: 661
- Joined: Mon Oct 29, 2007 6:51 pm
Re: centos suexec breaks scripts from running bad! Any help?
change the file ownership to match the directory owner or vice versa.
Re: centos suexec breaks scripts from running bad! Any help?
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.
-
- Forum Regular
- Posts: 661
- Joined: Mon Oct 29, 2007 6:51 pm
Re: centos suexec breaks scripts from running bad! Any help?
Plesk wont care unless you try and use the file manager to manage the files.
Re: centos suexec breaks scripts from running bad! Any help?
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>
<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>
Re: centos suexec breaks scripts from running bad! Any help?
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.
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.