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 cifs option to mount. More information: <https://manned.org/mount.cifs>.

Install

All systems
curl cmd.cat/mount.cifs.sh
Debian Debian
apt-get install cifs-utils
Ubuntu
apt-get install cifs-utils
Alpine
apk add cifs-utils
Arch Arch Linux
pacman -S cifs-utils
image/svg+xml Kali Linux
apt-get install cifs-utils
CentOS
yum install cifs-utils
Fedora
dnf install cifs-utils
Windows (WSL2)
sudo apt-get update sudo apt-get install cifs-utils
Raspbian
apt-get install cifs-utils
Docker
docker run cmd.cat/mount.cifs mount.cifs powered by Commando

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

  • Connect using the specified username or `$USER` by 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

© tl;dr; authors and contributors