From the course: Linux System Engineer: Network Filesystems Using NFS and Samba

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

CIFS mount options

CIFS mount options

- [Narrator] The mount.cifs command has many options. Let's go over a couple of common ones. username= specifies the username to authenticate with. password= specifies the password to authenticate with. Naturally, we don't want to include the username and password in our SCFS tab file for odd amounts since that file is world readable. So we specify a credentials=file that can't be read by anyone but root. In the credentials file is the username and password. dir_mode sets the initial directory permissions. file_mode sets the initial file permissions. seal enables encryption support for connections using SMB Protocol version 3 or later. Therefore, use seal together with a vers mount option, set to 3.0 or later. Lastly, sec= sets the security mode. For a list of possible modes, see the mount.cifs man page.

Contents