mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
5305776d45
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
695 B
695 B
mount.cifs
Mount SMB (Server Message Block) or CIFS (Common Internet File System) shares. Note: You can also do the same thing by passing the
-t cifsoption tomount. More information: https://manned.org/mount.cifs.
- Connect using the specified username or
$USERby default (you will be prompted for a password):
mount.cifs -o user={{username}} //{{server}}/{{share_name}} {{mountpoint}}
- Connect as the guest user (without a password):
mount.cifs -o guest //{{server}}/{{share_name}} {{mountpoint}}
- Set ownership information for the mounted directory:
mount.cifs -o uid={{user_id|username}},gid={{group_id|groupname}} //{{server}}/{{share_name}} {{mountpoint}}