ppp-on is a shell script so making it suid root does not help. (for   
security reasons, suid bit on shell scripts is discarded).
so to run it suid root, you will need to run a little program (in C or   
whatever you like), compile it and make it suid root.
this little C program will execute ppp-on (with root priviledge).

by the way, i just can't have a look at it but if you run redhat you can   
configure things with linuxconf to enable users to initiate and terminate   
the ppp link and i don't think it gives them right to see the password   
...

hope this helps.

pascal

 -----Original Message-----
From: Bogdan Taru [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, April 29, 1999 7:45 PM
To: [EMAIL PROTECTED]
Subject: Suid?


 Hi,
 I would like to start my connection to my ISP (ppp-on) as a simple user,
without becoming root. I would still like to have the password file
(/etc/ppp/ppp-on-dialer) set as non-readable for users. I've tryied to
make it suid root, but it didn't worked... (strace gives me 'cannot
exec'). Any ideas?

Have fun,
bogdan
  • Suid? Bogdan Taru
    • LENGARD Pascal OCISI

Reply via email to