1

Can I automate mounting a cifs share without storing my password in plaintext?

view story
linux-howto

http://unix.stackexchange.com – I currently use a script which contains commands along the lines of sudo /sbin/mount.cifs $SERVER_SHARE $MOUNT -o username=$DOMAIN_$USER,uid=$USER,gid=$USER,file_mode=0664,dir_mode=0775 to mount my cifs shared directories. This works fine, but I have to enter my password for each of these lines, so I would like to automate this process. In order to adhere to local security policy I must not add my password to the command line, nor may I store my password in plain text in a file (either the mount script or a credentials file). Do I have any other options for authenticating my cifs mount, o (HowTos)