從linux下mount windows下的共享文件:
smbclient在RHEL <=4
這種形式
# mount -t smbfs -o username=test,password=testpass //ntserver/download /mnt/ntserver
在RHEL 5以後變成了
# mount -t cifs //ntserver/download -o username=test,password=testpass /mnt/ntserver
記錄一下,自動mount修改 /etc/fstab
//ntserver/download /mnt/ntserver smbfs username=test,password=testpass 0 0
//ntserver/download /mnt/ntserver cifs user,uid=500,rw,suid,username=test,password=testpass 0 0
更安全一點的辦法
//winbox/getme /mnt/win cifs user,uid=500,rw,noauto,suid,credentials=/root/secret.txt 0 0
And the /root/secret.txt file looks like this:
username=test
password=testpass
ref:
http://wiki.centos.org/TipsAndTricks/WindowsShares
http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html
http://www.cyberciti.biz/faq/configure-a-system-to-automount-a-samba-share-with-etcfstab/
記錄一下備忘!
没有评论:
发表评论