> I'm creating a GUI front-end for the adsl scripts > which need to run as root. The bash command is > usually: >
GUI, in root... if the bloke maintaining all this needs a GUI then something is wrong. More to the point, you mean you are running X on a unix server? ADSL scripts sounds like you are an ISP... *** NO X WINDOW SYSTEM ON SERVERS *** Why? Because it's extremely complicated and won't be as thoughly tested security wise as pure shell based programs. > "su root adsl-start". My problem is how to pass > the root password which the user enters into the > GUI to this command. Is it possible? IIRC, X Window events can be monitored by all other programs - including password grabbers. Someone else might be able to verify me on that one. I've got a feeling this is not a particularly secure shop anyways. > I tried opening a perl pipe like this which worked on > windows with gpg: > > [SNIP] > I believe you'll probably need to use the Psuedo terminal module, whatever it was called. Search www.cpan.org for it. You need to fool su/ssh into thinking it has a real user sitting at the terminal. Jonathan Paton NB: I made the warnings about X Window System strong enough so you'd notice, but not to cause offence. Apologies for not putting this little note at the top, before I used such strong writing so that you didn't have to get worked up about it. __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]