[99457] in RedHat Linux List
RE: UID for CGI program
daemon@ATHENA.MIT.EDU (Charles Galpin)
Sat Nov 14 12:32:02 1998
Date: Sat, 14 Nov 1998 11:31:33 -0500
From: Charles Galpin <cgalpin@lighthouse-software.com>
To: Ronnie Thum <redhat-list@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
It's a way of making a program run as root ( set user id ) by setting the
suid bit on the file. If you are using perl, you cannot do this without a C
wrapper or suidperl.
I would just create a directory somewhere with read/write access by wwuser
or nobody ( or whoever you cgi runs as ).
hth
charles ( who also just snipped a couple of trailers - I'm so proud to be a
good list member. ok that's still debatable )
===== Original Message from Ronnie Thum <redhat-list@redhat.com> at 11/14/98
11:12 am
>I want to write a set of initialisation values to a file so that my
>program can read from it and start processing.
>What's suid root ?
>
>Rgds
>Ronnie
>
>
>On Sat, 14 Nov 1998, Charles Galpin wrote:
>
>> But files in /tmp may get removed at some point by a utility ( I forget the
>> name ) that cleans up time periodcally.
>>
>> I agree with Joel, that running the web server as root is a very bad idea.
>> If you explain what you are up to, I'm sure we can suggest better
>> alternatives. Even running a particular CGI suid root would be better.
>>
>> charles
-- Charles Galpin <cgalpin@lighthouse-software.com>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.