cifs-utils - Common Internet File System utilities
samba - SMB/CIFS file, print, and login server for Unix
smbclient - command-line SMB/CIFS clients for Unix
安裝
shell> sudo apt-get install cifs-utils
shell> sudo mkdir /mnt/winshare
shell> sudo mount -t cifs -o username=john,password=johnpass,domain=example.com //winserver/share /mnt/winshare
shell> sudo mount -t cifs //winserver/share /mnt/winshare -o user=john,password=johnpass,dir_mode=0664,file_mode=0775
shell> sudo mount -t cifs //winserver/share /mnt/winshare -o credentials=credfile
shell> sudo mount.cifs //winserver/share /mnt/winshare -o file_mode=0777,dir_mode=0777,user=john,password=johnpass,iocharset=utf8
/etc/fstab
//winserver/share /mnt/winshare cifs gid=users,file_mode=0664,dir_mode=0775,auto,rw,username=john,password=johnpass 0 0
//winserver/share /mnt/winshare cifs credentials=credfile,uid=1000,gid=1000,iocharset=utf8,file_mode=0664,dir_mode=0775 0 0
username=john
password=johnpass
domain=MYDOMWKG
shell> chmod 400 credfile
shell> mount -a
shell> umount -lf /mnt/winshare