Red Hat Bugzilla – Bug 840485
Explain how to mount volumes over CIFS
Last modified: 2015-04-10 03:14:31 EDT
"22.214.171.124. Manually Mounting Volumes Using CIFS" only explains how to use Windows to mount over CIFS. A lot of customers will want to use CIFS on Linux as well (more options on authentication). It would be good to document that for completeness.
I have added instructions on using Linux to mount over CIFS. The documentation of the same is available at: http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Storage/2.0/html/Administration_Guide/sect-Administration_Guide-GlusterFS_Client-CIFS.html#id2857734
The above mentioned url is not browseable, so I verified it from source and it looks fine.
Thanks! Two minor points I'd like to add for improving:
1. use the full filename for /etc/samba/smb.conf instead of smb.conf
2. instead of passing username+password in /etc/fstab, use the 'credentials='
option as advised in 'man mount.cifs':
specifies a file that contains a username and/or password. The
format of the file is:
This is preferred over having passwords in plaintext in a shared
file, such as /etc/fstab. Be sure to protect any credentials file
I have incorporated Niels suggestions. Updated guide is available at: http://documentation-devel.engineering.redhat.com/docs/en-US/Red_Hat_Storage/2.0/html/Administration_Guide/sect-Administration_Guide-GlusterFS_Client-CIFS.html#sect-Administration_Guide-GlusterFS_Client-CIFS-Automatic
Could you use a clearer example? I think it would be easier for users to understand if you have something like 'credentials=/etc/samba/mountpoint.passwd' instead of 'credentials=file1'.
As the format of the (in this example) /etc/samba/mountpoint.passwd is important, it would be good to have a reference to the manual page of 'mount.cifs' which explains the format.
I have added path for the password file and reference to man page, updated documentation is available at http://documentation-devel.engineering.redhat.com/docs/en-US/Red_Hat_Storage/2.0/html/Administration_Guide/sect-Administration_Guide-GlusterFS_Client-CIFS.html#sect-Administration_Guide-GlusterFS_Client-CIFS-Automatic
Verified in the above mentioned link and it looks fine.