I am trying to setup "/etc/fstab" to automatically setup some CIFS file mounts on a Windows 2003 server. I initially set them up to work with just my user for testing purposes like this...
//main-ms4/dept /home/bhartung/WindowShares/dept cifs credentials=/home/bhartung/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777 1 3
This commmand works fine and does mount the share successfully during logon.
My next step was to make the mount applicable to any user logging in by using the env variables $HOME
//main-ms4/dept $HOME/WindowShares/dept cifs credentials=$HOME/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777 1 3
This line does not cause any errors but it fails to mount the windows share.
When I type $HOME at the prompt in Xterm, it echoes "/home/bhartung".
What am I missing?