Sensitive data in init scripts

Posted by Steve Jorgensen on Server Fault See other posts from Server Fault or by Steve Jorgensen
Published on 2012-06-03T21:35:03Z Indexed on 2012/06/03 22:41 UTC
Read the original article Hit count: 284

Filed under:
|
|

I'm adapting some examples I've found by Googling to build an init script to run a VirtualBox OSE virtual machine as a daemon. I would like to specify a password for VNC access to the VM, and this must be given as an argument to the VBoxHeadless command.

Conventionally, init scripts are readable by standard users, and this seems like a useful convention, but I also don't want the VNC password for this VM to be stored in easily accessible plain text.

What's the most appropriate/conventional way to handle this kind of situation? Maybe put a root-readable supporting data file someplace, and have the init script load the value from there?

© Server Fault or respective owner

Related posts about linux

Related posts about security