Ubuntu访问samba共享文件

Ubuntu访问samba共享文件

参考:https://www.cnblogs.com/Wolf-Dreams/p/11241198.html

做法

安装samba-client、cifs-utils

sudo apt-get install -y smbclient cifs-utils

不安装cifs会提示:mount: /xx: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.

临时挂载:

sudo mount -t cifs -o user=用户,password=密码 //samba/path /local/path
posted @ 2021-02-25 10:15  schips  阅读(822)  评论(0)    收藏  举报