Ubuntu访问samba共享文件方法

1.1  安装samba客户端

sudo apt-get install smbclient -y

1.2  查看文件共享权限

smbclient -L //192.168.100.6

1.3  创建挂载点

mkdir -p /mnt/Myshare

1.4  临时挂载

sudo mount -t cifs -o user=<username>,password=<password> //192.168.100.6/Software /mnt/Myshare/

1.5  开机自动挂载

//192.168.100.6/Software /mnt/Myshare cifs user=<username>,password=<password> 0 0

猜你喜欢

转载自www.cnblogs.com/Wolf-Dreams/p/11241198.html
今日推荐