On Wed, Nov 28, 2001 at 03:38:59PM +0800, CYWare wrote:
> 
> Is there anyway to login as root and perform a few privileged actions from
> within a CGI program?  I want to be able overwrite a file owned by root, as
> well as perform other "root only" tasks, from within my CGI program.
> 
> We use C++ for CGI programming, so the approach would also have to use C or
> C++.  TIA.

This is going to sound harsh, but I assure you that's not my intention.
Generally, if you have to ask about writing a suid program, it's a bad
idea.  It's a bad idea to use suid with CGI, anyway, there are just too
many security bases to cover.  I would strongly suggest that you seek an
alternative method to accomplish the same thing.

Michael
-- 
Michael Darrin Chaney
[EMAIL PROTECTED]
http://www.michaelchaney.com/
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to