补充 命令行下访问 samba 服务.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
040ad93d1e
commit
1dd04e5e12
|
@ -112,7 +112,18 @@ systemctl restart smb.service
|
||||||
|
|
||||||
### 6.1. Linux 客户端
|
### 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
|
```bash
|
||||||
smb://<IP or host name>
|
smb://<IP or host name>
|
||||||
|
|
Loading…
Reference in New Issue