mount.cifs Command Examples

Mount SMB (Server Message Block) or CIFS (Common Internet File System) shares. Note: you can also do the same thing by passing the -t cifs option to mount. More information: https://manned.org/mount.cifs.

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}}