Files
tldr/pages.zh/linux/mount.cifs.md

17 lines
695 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# mount.cifs
> 挂载 SMB服务器消息块或 CIFS通用互联网文件系统共享。
> 注意:您也可以通过将 `-t cifs` 选项传递给 `mount` 来完成相同的操作。
> 更多信息:<https://manned.org/mount.cifs>。
- 使用指定的用户名或默认的 `$USER` 连接(系统会提示您输入密码):
`mount.cifs -o user={{username}} //{{server}}/{{share_name}} {{mountpoint}}`
- 以访客用户身份连接(不需要密码):
`mount.cifs -o guest //{{server}}/{{share_name}} {{mountpoint}}`
- 设置挂载目录的所有权信息:
`mount.cifs -o uid={{user_id|username}},gid={{group_id|groupname}} //{{server}}/{{share_name}} {{mountpoint}}`