suid is dangerous but:

change onwnership of the file to root then do a:

chmod 4755 [filename]

THis causes the process to run as root:

4000 = suid
2000 = sgid
1000 = sticky bit

What was that IP again?  >;)

Carric Dooley
COM2:Interactive Media
http://www.com2usa.com

On Tue, 6 Jul 1999, Prashant Vijay wrote:

> THis isn't related to firewalls, but its security related.
> I have an expect script that takes in a username and a password, and adds
> and account. This scripts runs useradd and passwd. It has to be run as
> root, but I will be calling this script from a cgi script, which will be
> running as nobody. How do I make just this script run as root. I don't
> want to put the root passwd in the script and run su. Isn't there
> something like set suid? PLease help me out. ANy help would be greatly
> appreciated.
>               -Prashant
> 
> -
> [To unsubscribe, send mail to [EMAIL PROTECTED] with
> "unsubscribe firewalls" in the body of the message.]
> 

-
[To unsubscribe, send mail to [EMAIL PROTECTED] with
"unsubscribe firewalls" in the body of the message.]

Reply via email to