smbclient -L //173.26.100.46 -U wangyao
这样可以列出你可以访问的目录及文件
smbclient //173.26.100.46/wangyao -U wangyao
这样了可以访问你的个人目录了
smbclient -L //173.26.100.46 -N
列出不须密码可以访问的目录及文件
smbclient //173.26.100.46/Document -N
匿名访问 Document目录
sudo mount -t cifs //ip地址/path/to/share path/to/mount
#手动挂载
#mount -t cifs -o username=用户名,password=密码 //ip地址/共享文件夹名 挂载点
mount:挂载命令
-t cifs: 用cifs文件系统挂载samba共享文件,如果提示错误的文件系统的话,可能是没有cifs,需要自己安装。【centos:
yum install nfs-utils】
//ip地址/path/to/share:共享目录路径
path/to/mount:要挂载的路径,需要自己创建一个