Skip to content

Mounting CIFS v2 on Linux⚓︎

Overview⚓︎

Mounting a native Windows CIFS share on a RHEL based Linux system requires the additional cifs-utils package be installed. Once cifs-utils is installed CIFS shares can be mounted with AD credentials. You will need to specify the mount type as cifs, the AD credentials to use to authenticate to the share, and the local Linux account to map permissions to.

Steps⚓︎

Bash
1
2
3
4
5
6
7
yum install cifs-utils

# you will now have mount.cifs available to you, use either 'mount -t cifs' or 'mount.cifs'
# replace ad_user with the AD user account to authenticate as
# replace company.com with the AD domain name
# replace linux_user with the linux UID which will be used to own all files and directories on the mount
mount -t cifs //cifs-server/share /home/linux_user/share/ -o username=ad_user,domain=company.com,uid=linux_user,vers=2.0