[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Programming problem
- To: linux-il(at-nospam)cs.huji.ac.il
- Subject: Programming problem
- From: jteich <jteich(at-nospam)subdimension.com>
- Date: Sun, 4 Feb 2001 09:44:43 -0500
- Reply-To: jteich(at-nospam)subdimension.com
- Sender: jteich(at-nospam)subdimension.com
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: IMP/PHP3 Imap webMail Program 2.0.11
I wanted to run a shell script program that needs to run with root permissions, and I wanted to
be able to start this script without su'ing. I tried to set the suid bit on the program, but I
found out that the suid bit only works for binary executables. Then I wrote a simple c program
that starts up the shell program through the system() call, and I chown the program to root and
set the suid bit on it, but for some reason the shell still wouldn't run as root. What am I
doing wrong and is there any way aroud this?
Thanks,
-Yossie
--------------------------------------
FREE ANONYMOUS EMAIL! Sign up now.
http://www.subdimension.com/freemail
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il