The UID and GID used for the mounted fs is different from the credentials used to connect to the cifs fileserver. So, I can connect to the fileserver as bob, but mount the filesystem as larry. So, you should use the uid and gid mount options in addition to the credentials option.
from http://webscript.princeton.edu/~pug/faqwiki/index.php?title=Using_SAMBA/CIFS_to_access_Windows_Shares
for example, if your NetID is "zorro999" and your password is
"zorrospassword", and you use /etc/cifspw for the credentials
filename, and your local user on your home computer is called
"bigzorro", your fstab should have the following line
//files.princeton.edu/zorro999 /mnt/h-drive cifs uid=bigzorro,credentials=/etc/cifspw,domain=Princeton 0 0
of, if you
want to mount it with SAMBA, it should look like
//files.princeton.edu/zorro999 /mnt/h-drive smbfs uid=bigzorro,credentials=/etc/cifspw,workgroup=Princeton 0 0
and in
/etc/cifspw should be
username=zorro999
password=zorrospassword
[edit]