Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 2004 00:00:00 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        "Eric W. Bates" <ericx_lists@vineyard.net>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Problems with rc.subr and suid script
Message-ID:  <4181C040.3090606@mac.com>
In-Reply-To: <41814DAA.80206@vineyard.net>
References:  <41814DAA.80206@vineyard.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Eric W. Bates wrote:
> I've written a CGI which is calling /usr/local/rc.d/squid.sh in an 
> attempt to start/stop the proxy.  Stopping works fine; however, whenever 
> I try to start it I'm having permissions problems.
> 
> It seems as tho rc.subr is using RUID instead of EUID.
> 
> The CGI is written in perl.

Perl may be disregarding the setuid bit of the script in order to avoid the 
security risks.  Consider changing your script to work via sudo.

-- 
-Chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4181C040.3090606>