Re: Programming problem

2001-02-04 Thread Adi Stav
On Sun, Feb 04, 2001 at 09:44:43AM -0500, jteich wrote: > 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

Re: Programming problem

2001-02-04 Thread Geoffrey S. Mendelson
jteich wrote: > > 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

Re: Programming problem

2001-02-04 Thread Sagi Bashari
you must setuid() before you run the program through system(). man setuid. On Sun, 4 Feb 2001, jteich wrote: > 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 >pro

Programming problem

2001-02-04 Thread jteich
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 s