[Gambas-user] To store or not to store...

Rob Kudla sourceforge-raindog2 at ...94...
Thu Mar 30 19:54:34 CEST 2006


On Thu March 30 2006 12:49, GuruLounge - MailLists wrote:
> MOUNT requires the root password in most cases.  What do you
> think is the best idea...
> 1) ask for passwords once per session, keeping them in memory
> 2) store the password in an encrypted file and use them as
> 3) ask for the password everytime the resource is accessed.

4) sudo.  Learn it, use it, love it.  That's how I handled 
exactly what you're describing in a Gambas application of my 
own.

You should never, ever keep a root password on disk anywhere, 
even encrypted, if it's accessible programmatically.  If for 
some reason you can't use sudo, I think the "prompt once, keep 
it in memory" approach is the most reasonable.

Rob




More information about the User mailing list