成长值: 522
签到天数: 4799 天 [LV.Master]伴坛终老
|
发表于 2016/3/23 20:37
|
显示全部楼层
|阅读模式
| Google Chrome 49.0.2623.75 | Windows 7
mount -t smbfs -o username=w,password=w,codepage=936,iocharset=gb2312 //192.168.1.3/share /mnt/winshare
挂载windows共享目录成功
自动挂载写法
在/etc/fstab中
//windows的IP地址/盘符 /linx文件路径 cifs defaults, credentials=/root/creds
/root/creds 內容:
username=yourusername
password=yourpasswd
然后将/root/creds改为400的权限。
原文:http://bbs.51cto.com/thread-792420-1.html
|
|