Install Samba[-][--][++]

# apt-get install samba

Add/Delete Samba/Unix users[-][--][++]

Add the linux user, but disable linux box login

useradd -d /home/username -s /bin/false -n username

This will create a new user with same group name with (told by '-n'), but the user can't login and run any shell command (because you have specfic the login shell is /bin/false by the '-s' switch, if you want allow user to able to login to a shell, replace /bin/false with /bin/sh).

Create a samba user (same as linux username created above)

smbpasswd -a username

'-a' switch tell smbpasswd we want to add a new user, is the user you want to add. Please take note, username must exist in /etc/passwd file else you will need the use 'useradd' to create a user in Linux :

If you want to disable a samba user use the '-d' switch

smbpasswd -d username

If you want to delete a samba user permanently:

smbpasswd -x username

smbmount[-][--][++]

Note, this is for ubuntu, fedora uses cifs, see below for fedora

mount -t smbfs -o username=USER,password=PASS //server/share /mnt/share

--
Make a file /root/.creds (you will be root!) this is the user and pass to your windows network/domain

username = 'znx'
password = mypassword

creds file would be for fstab, like so
chmod 0600 /root/.creds
//winpc/shared  /mnt/share  smbfs  credentials=/root/.creds,rw,uid=znx  0  0
mount /mnt/share

---
smbmount //winpc/shared /mnt/share -o username=user,password=pass,rw
smbmount //winpc/shared /mnt/share -o rw
smbmount //winpc/shared /mnt/share -o rw,uid=znx

===
This worked (had to have '' around dyna-admin

smbmount \\\\dyna3\\C$ /dd -o username='dyna-admin',password=yourpass,domain=yourdomain.local, rw

or with forward slashes

smbmount //dyna-sbs/C$ /mnt/dyna-sbs/C -o username='dyna-admin',password=yourpass,domain=dynatron.local, rw

cifs (fedora smb mount)[-][--][++]

command line:[-][--][++]

# mount.cifs //192.168.1.1/timeclick /media/dyna-sbs/timeclock credentials=/root/.credentials
or
# mount.cifs //192.168.1.1/timeclock /media/dyna-sbs/timeclock user=dynatron/mreschke%passwordhere 
but either way, it still prompts for the password

see man mount.cifs for more

cifs in fstab[-][--][++]

in /etc/fstab

//192.168.1.1/timeclock /media/dyna-sbs/timeclock cifs credentials=/root/.credentials,rw,uid=mreschke 0 0

to handle spaces in fstab, escape with \040
//192.168.1.1/Dynatron\040Business /media/dyna-sbs/DynatronBusiness cifs credentials=/root/credentials,rw,uid=mreschke 0 0

note: uid must match username in the credentials file

credentials file for fedora cifs[-][--][++]

username=yourusername
password=yourpass
workgroup=yourdomain

Resources[-][--][++]