Automatic password retrieval for mounting netware server
In my .bashrc file, I have set up an alias command to mount a netware drive. It looks like this currently:
alias mount.scholar="ncpmount -C -S SCHOLAR -V USER -U $USER ~/scholar/"
However, since I have not specified a password using -P passwd, it will prompt me for a password. I want to be able to specify a password somehow similar to how I specified the user, like this:
alias mount.scholar="ncpmount -C -S SCHOLAR -V USER -U $USER -P $PASS ~/scholar/"
I don't want to simply type in my password because then it would be visible to all, but I'm not sure if I can securely put it in an environment variable as $PASS. I'm looking for ideas on how I can mount this server without manually entering a password.