Hello, mount.smb(8): ... credentials=<filename> specifies a file that contains a username and/or password. The for‐ mat of the file is: username = <value> password = <value> ... mount.cifs(8): ... credentials=filename specifies a file that contains a username and/or password. The for‐ mat of the file is: username=value password=value ... People should switch from smb to cifs and some stumble about this change. They have to remove the spaces around the = I see 2 possible solutions: 1. make mount.cifs to parse both possibilities correct 2. add a note to the manpage about this format change thx. noel@d.o
Thanks. This change has been adopted into the man page for smbmount(8).
I don't see any comments in the current mount.cifs(8) manpage about the difference in credentials file format compared with smbmount. I think this bug was closed in error.
Steve, please check in the samba-docs svn trunk at svn://svnanon.samba.org/samba-docs/trunk to confirm.
confirmed. the description of credentials in svn://svnanon.samba.org/samba-docs/trunk/manpages-3/mount.cifs.8.xml is: <varlistentry><term>credentials=<replaceable>filename</replaceable></term> <listitem><para> specifies a file that contains a username and/or password. The format of the file is: </para> <programlisting> username=<replaceable>value</replaceable> password=<replaceable>value</replaceable> </programlisting> <para> This is preferred over having passwords in plaintext in a shared file, such as <filename>/etc/fstab</filename>. Be sure to protect any credentials file properly. </para> </listitem></varlistentry> While the described syntax is correct, there is no mention of the difference between cifs and smbfs.
From Steve's comment, I think we consider this bug to not really be fixed. An explicit mention of the difference with mount.smbfs would be good. So, I take the liberty of reopening the bug (I hope that's not considered rude)
There is now something included in the BUGS paragraph about leading space in usernames and passwords. Does this mean this bug will never get 'fixed' as it would be unclear if leading space is part of a username/password or is part of the separator ( = )?