If your C program binary is setuid root, i really don't understand why it   
should not work. but maybe you should trys the redhat way to enable users   
to launch ppp (under  linuxconf), it will mostly make pppd setuid root   
too ...

Or you should debug all this.
replace pppd with a shell script of yourself displaying informations like   
the result of the command "id".
do the same to ppp-on ...
and trace where the euid=root thing disappear (if it does...)

pascal
 -----Original Message-----
From: je11y292 [SMTP:[EMAIL PROTECTED]]
Sent: Friday, May 28, 1999 5:19 PM
To: [EMAIL PROTECTED]
Subject: suid?ppp question

Hi folks, here's my little problem:

When I wanted to start a ppp connection with my isp, I executed a little   
C
program that started the ppp-on script. This program was suid root, so I   
was
able to start the connection as a regular user. Yesterday, a friend gave   
me
a red hat 6.0 disk, so I decided to upgrade from 5.2 . Now, whenever I   
try
to execute the c program to connect to my isp, it doesn't work.


May 24 23:09:15 localhost kernel: PPP line discipline registered.
May 24 23:09:15 localhost kernel: registered device ppp0
May 24 23:09:15 localhost pppd[435]: pppd 2.3.7 started by aurora, uid   
500
May 24 23:09:15 localhost pppd[435]: Failed to open /dev/ttyS0:   
Permission
denied
May 24 23:09:15 localhost pppd[435]: Exit.


Now if I run this program as root, it works fine. So I'm confused.  If   
this
program was really running with root privelages, I wouldn't have this
problem, right?  I've connected to my isp this way for the past 2 months   
or
so with redhat 5.0 and redhat 5.2, so what could have happened yesterday
with the install of 6.0?


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

Reply via email to