On Fri, May 09, 2003 at 04:00:24PM +0100, Richard Layden wrote: > My set up at home is a LAN with 2 dual boot Windows/Linux PCs and a server > running RH8. > > I have a dial up connection to Freeserve. > > I want to be able to provide a link to start pppd from a web page. > i.e. from one of the Windows PCs I can dial up an internet connection by > clicking a link (rather than having to ssh into my server and running the > script manually) > > I created a shell script and suid'd it (to allow the user 'apache' to run > the script.) Hmm... A suid shell script is not a good idea. You're better off using sudo and allowing apache to execute the script through it. An even better solution is to allow users to bring the ppp link up and down, which can be done with a flag in the appropiate /etc/sysconfig/network-scrips/ifcfg-* file. This would completely relieve you of having to run anything started from the web server as root. > The script will start but I then had a permissions problem with /dev/ttyS0. > > To test I did chmod 777 /dev/ttyS0 > (and also chmod u+s /dev/ttyS0 and chmod g+s /dev/ttyS0 !) > > The script still failed... > > Is there anything I'm missing ? What's wrong with the standard ifup command to bring the link up? Did you try to have your page run it directly? Through a small wrapper? Doing this might insulate PPP configuration from the equation. With regards to your script, does it work if you run it manually as root? And if you run it as apache or another non-root user? > Obviously without the script you may have problems (if so I'll mail it when > I get home from work!) Yeah, that could provide more info on the problem. Also, check my questions above and send the answers along with the script. Cheers, -- Javier Gostling D. <jgd@xxxxxxxxxxxxxxxxx> -- Psyche-list mailing list Psyche-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/psyche-list