This is an old revision of the document!
/etc/fstab
//server/share /media/cifs/ cifs rw,user,auto,credentials=/home/username/.smbcredentials,uid=1000,gid=100 1 2
$ vim .smbcredentials
.smbcredentials
username=foobar password=blabla
$ chmod 600 .smbcredentials
pdbedit –pwd-must-change-time=timestamp username
timestamp je unix time ko mora spremenit password
ce das to na 0 pol bo moral spremenit