linux 下 用mount 挂载 samba 以及Linux 开机自动挂载 samba
一、挂载匿名samba
#mount -t cifs //192.168.2.2/share /151.2_share -o guest
#ls /151.2_share
二、挂载非匿名samba
#mount -t cifs //192.168.2.2/share /151.2_share -o username=samba,password=samba,iocharset=utf-8
#ls /151.2_share
三、开机自动挂载匿名samba
#vim /etc/fstab
//192.168.151.2/share /151.2_share cifs defaults,guest 0 0
#reboot -f
#ls /151.2_share
四、开机自动挂载匿名samba
#vim /etc/fstab
//192.168.2.2/share /151.2_share cifs defaults,username=samba,password=samba
#reboot -f
#ls /151.2_share
转载于:https://blog.51cto.com/hunkz/1584089