Problems with rc.subr and suid script
Chuck Swiger
cswiger at mac.com
Thu Oct 28 21:00:10 PDT 2004
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
More information about the freebsd-isp
mailing list