I ended up just storing all the passwords, then the script becomes 
trivial. Is there a reasonable way to do this without storing passwords?

Dave

----- Original Message -----
From: Thomas David Burns <[EMAIL PROTECTED]>
Date: Tuesday, December 3, 2002 12:30 pm
Subject: [Sharity-talk] passwords and scripts

> I would like to write a script that will automatically mount a share
> using sharity when a user logs in. My platform is IRIX. I've 
> written a
> script that works fine from the command line, but it prompts the 
> user to
> enter the password there at the command line. If I try to run this
> script through the GUI by double-clicking the icon of the script, 
> thereis a problem, since the GUI dialog window does not pop up. 
> The prompt
> goes to the console instead of the GUI, and the prompts are just 
> rollingalong with error messages in between. 
> 
> I know I could use the -P option in the script, but then I'd have 
> to put
> the password in the script (bad security) and make a different script
> for each user (tedius).
> 
> Is there an "official" solution for this problem?
> 
> I discovered an approach for a work-around by accident. If I
> double-click the script, then send that process a kill -HUP, then the
> GUI dialog pops up and asks for the password! This is a bit 
> awkward, but
> I might be able to script something that uses it.
> 
> Dave
> 
> _______________________________________________
> Sharity-talk mailing list
> [EMAIL PROTECTED]
> To unsubscribe see http://at.obdev.at/mailman/listinfo/sharity-talk
> 

_______________________________________________
Sharity-talk mailing list
[EMAIL PROTECTED]
To unsubscribe see http://at.obdev.at/mailman/listinfo/sharity-talk

Reply via email to