Linux 手动挂在windows共享
smbclient //ip/dir -U user
sudo mount "//ip/dir" /mnt/dir
smbmount //ip/dir /mnt/dir使用smbclient -L //分享主机名或地址,查看共享电脑的资源
Linux 下自动挂在windows 共享 创建登录需要的用户名和密码
在root目录下创建一隐藏文件.smbcredentials
添加如下的content
content username= “yourname” password = “password”
修改其 property 为 700
Chmod 700 smbcredentials
addition this line to /etc/fstab
//windowspc's ip/sharedir /mnt/directory smbfs credentitals=/root/.sbmcredentials 0 0
that's all.
新闻热点
疑难解答