补充 命令行下访问 samba 服务.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2020-06-18 10:54:18 +08:00
parent 040ad93d1e
commit 1dd04e5e12
1 changed files with 12 additions and 1 deletions

View File

@ -112,7 +112,18 @@ systemctl restart smb.service
### 6.1. Linux 客户端
在 Nautilus 文件浏览器右侧选择“Other Locations”下方出现“Connect to Server”然后输入
#### 6.1.1 命令行下访问 samba 服务
```bash
# The following command lists public shares on a server
smbclient -L hostname -U%
# Mount the share using mount.cifs as type. Not all the options listed below are needed or desirable
mount -t cifs //SERVER/sharename /mnt/mountpoint -o username=username,password=password,workgroup=workgroup,iocharset=utf8,uid=username,gid=group
```
#### 6.1.2. 使用 Nautilus 访问 samba 服务
在 Nautilus 文件浏览器支持多种远程文件访问服务。在 Nautilus 文件浏览器右侧选择“Other Locations”下方出现“Connect to Server”然后输入
```bash
smb://<IP or host name>