Dmizer,
I sure did leave the "cifs" out. Thanks for the correction.
Let me explain my "incorrect use of guest" in the mount command statement. First let me say that I mount a smb share using the mount -t cifs command via a script in my own network. I added guest to the -o section and had instant failure, just as the OP described.
I assume also that we both agree the mount option guest has nothing to do with the Samba Server guest directive.
The -o section of the man page for mount is worth noting:
Code:
-o Options are specified with a -o flag followed by a comma sepa‐
rated string of options. Some of these options are only useful
when they appear in the /etc/fstab file. ...
And continuing in the mount.cifs man pages:
Code:
Options to mount.cifs are specified as a comma-separated list of
key=value pairs. It is possible to send options other than those listed
here, assuming that the cifs filesystem kernel module (cifs.ko) sup‐
ports them. Unrecognized cifs mount options passed to the cifs vfs ker‐
nel code will be logged to the kernel log.
Finally the guest option:
Code:
guest
don’t prompt for a password
To my way of thinking, this means just what it says. It does not refer to a guest account in any way. I could have just as easily been called noprompt.
Using the references in the man pages, my conclusion is as I stated before "...not all options are for command line usage. Some are for fstab automount... "
The guest option is to suppress the password prompt when mounting cifs shares via fstab (automount). We can use a cred file for the same effect. But in a large environment I think I would rather not leave cred files exposed. Some day I will create a share and mount it via fstab with the option guest to see what happens. But that is for another day.
Edit: I see another reference to my thought in the mount.cifs man pages. See:
password=arg
specifies the CIFS password. If this option is not given then the environment variable PASSWD is used.
If the password is not specified directly or indirectly via an argument to mount mount.cifs will prompt for a password, unless the guest option is specified.
The OP's problem was in understanding what a guest (or maybe a guest account) is. In this case the -o guest (even if there were no errors) was misguided.