Ubuntu下快速挂载window下的samba共享目录|Ubuntu Mount Windows Share (CIFS)
Author
posted @ 2011年7月08日 03:36
in Linux
, 9059 阅读
Ubuntu可以利用 mount指令, 挂载windows下的共享目录,
首先要安装samba服务器的配置文件:
sudo apt-get install smbfs
例如 windows下的共享盘符为d:, 则其磁盘代号为 d$
以下三段 username 皆为 administrator , password 为 ntws40
在 ubuntu 可以打入以下指令挂载 到 /media/cifs (之前需在/media/下新建目录名为cifs)
sudo mount -t cifs //192.168.1.200/d$ -o
username=administrator,password=ntws40,iocharset=utf8 /media/cifs
或者修改/etc/fstab文件:
//192.168.1.200/d$ /media/cifs cifs username=administrator,password=ntws40,iocharset=utf8 0 0
也可以利用 smbclient 测试
smbclient //192.168.1.200/d$ -U administrator%ntws40
成功的话会有提示 smb: \>
键入命令
smb: \> dir
则会显示服务器端的共享目录
更多参考:
https://help.ubuntu.com/community/MountWindowsSharesPermanently
2022年3月19日 08:28
Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. https://www.posterprintcenter.com/falcon-flags.html