Connect to MS Windows from Linux CLI ------------------------------------ https://help.ubuntu.com/community/Samba/SambaClientGuide sudo apt-get update && sudo apt-get -y install smbclient && sudo apt-get clean Connecting to a Samba File Server from the command line Connecting from the command line is similar to a ftp connection. List public SMB shares with smbclient -L //server -U user smbclient -L //server -U user%password Connect to a SMB share with smbclient //server/share -U user smbclient //server/share -U user%password Once connected you will get a prompt that looks like this : smb: \> Type help at the prompt for a list of available commands. man smbclient will give more information # # # CIFS ...better way as it will be part of Linux filesystem and there would be much easier to manage files and folders, e.g. using mc (Midnight Commander) or similar. Most nowadays MS Windows versions support CIFS. use sudoers to grant permission to use mount command without entering password sudo apt-get update && sudo apt-get -y install cifs-utils && sudo apt-get clean man 8 mount.cifs mkdir ~/win sudo mount -t cifs //myserver_ip_address/myshare ~/win -o username=samb_user,noexec,uid=user-uid,gid=user-gid older machines: -t smbfs (currently deprecated -no longer maintained and pending removal from the kernel) -o choices ---------- password=samb_pwd credentials=/path/filename username=value password=value domain=value uid=user-uid (starting at 1000) gid=user-gid (starting at 1000) ... using proper uid,gid will give also write permission for certain user same share can be mount multiple times by different users to see mounted systems by certain type: mount -t cifs /etc/fstab: //myserver_ip_address/myshare /media/samba_share cifs credentials=/etc/samba/user,noexec 0 0 sudo nano /etc/samba/user username=value password=value domain=value sudo chmod 0400 /etc/samba/user # permissions of 0400 = read only option noauto in /etc/fstab mount options will cause not mount automatically: //myserver_ip_address/myshare /media/samba_share cifs noauto,credentials=/etc/samba/user,noexec 0 0 ... then you can mount using: sudo mount /media/samba_share and unmount: sudo umount /media/samba_share MS Windows has also admin share: C: has \\IP\c$ from Linux: smbclient //server/c$ -U adminuser