This are the commands I have used in the past
Code:
# mount.cifs //192.168.1.65/Downloads /home/user1/Downloads -o domain=workgroup,rw,file_mode=0777,dir_mode=0777,uid="$USER"
that command allows me to mount the Download directory in the server to the Download directory of the client laptop you can change what directory you want to mount and into what directory you want to mount it.
This other command has worked good for me
Code:
mount -t cifs -o username=<userhere>,password=<passwordhere> //192.168.1.65/shared_Drive /home/user1/Public
For the second command
replace <userhere> and <passwordhere> with the user name and password you use to log in your server
replace user1 with the user name you use in your client machine from where you are connecting
replace Public with the name of the directory you want the files to be mounted.
Keep in mind if you use the second command your user name and password to log in in the server will be storage in the therminal history so anyone else that uses your computer would be able to find that history.
Adding your server password in the fstab file is also not recommended because anyone can read what is on that file. Unless you are o.k. with sharing that password.
Good luck to you