I am managing a few dedicated game servers on a Ubuntu server 14.04 machine. These games are downloaded and updated by the SteamCMD tool, which for some games, requires login from the command line arguments, which are plain readable text.
I created a few scripts to automate the processes of updating the servers every time the machine restarts, which are run by the user's
Anyway, long story short: I need to find a way to securely store a password in a executable script. I'm thinking of storing just the encrypted password and somehow decrypt it before plugging it to the
steamcmd arguments, and of course set user permissions to let just the owner user read it (or even just execute, is it possible?). Any advice on that?