# apt-get install samba
Add the linux user, but disable linux box login
useradd -d /home/username -s /bin/false -n username
Create a samba user (same as linux username created above)
smbpasswd -a username
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
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
# 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
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
username=yourusername password=yourpass workgroup=yourdomain