[CentOS] Automount CIFS share in CentOS 5.1

Wed Mar 26 12:20:39 UTC 2008
Rick Barnes <linux at sitevision.com>

Joseph L. Casale wrote:
> I am looking online trying to find a procedure to automount a CIFS
> share but need to use username/domain/pass in the credential file
> thats referenced in fstab. Its not working, anyone know of a resource
> that works in CentOS5.1?
> 
> If it matters, the unc has a dash and a $ in it, and the password has
> special characters in it.

This works for me using a credentials file:

username=<DOMAIN>\<hostname>
password=<password>

I know the $ doesn't make a difference because I mount my AD homedir 
that has a $ at the end, I don't think the dash would make a difference 
but I'm not a 100% positive.

Rick