diff --git a/Software/Applications/Samba/Linux_搭建_Samba_服务器.md b/Software/Applications/Samba/Linux_搭建_Samba_服务器.md index 45b7c3a..ceb3c22 100644 --- a/Software/Applications/Samba/Linux_搭建_Samba_服务器.md +++ b/Software/Applications/Samba/Linux_搭建_Samba_服务器.md @@ -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://