Anonymous user on Samba

Does this avoid a password prompt?

How do I mount an SMB share '/var/tmp on /mnt as guest?

I've tried numerous ways but get errors all the time.

mount_smbfs -I 192.168.1.16 //guest@samba/var/tmp /mnt

gives me a password prompt.
 
mount_smbfs(8)
Code:
-N      Do  not ask for a password.  At run time, mount_smbfs reads the
           ~/.nsmbrc file for additional configuration  parameters    and  a
           password.  If no    password is found, mount_smbfs prompts for it.
 
mount_smbfs(8)
Code:
-N      Do  not ask for a password.  At run time, mount_smbfs reads the
           ~/.nsmbrc file for additional configuration  parameters    and  a
           password.  If no    password is found, mount_smbfs prompts for it.
So, I need to set up a specify user, ie guest, for anonymous access and provide a password?..

This example makes it seem that very straightforward, but I'm not finding it that way.

 
Not making any progressing on mounting a Samba share.... Could someone tell me where I'm going wrong?

This is my /usr/local/etc/smb4 on 192.168.1.8 (M73)
Code:
[data]
    path = /test
    public = yes
    writable = yes
    printable = no
    guest ok = yes
    map to guest = Bad User
    log file = /var/log/samba/%m
    log level = 0
    server role = standalone server
    guest ok = yes
    map to guest = Bad User
    guest account = nobody

I try to mount this share from 192.168.1.6 using mount_smbfs -N -I 192.168.1.8 //guest@M73/data /media and get

mount_smbfs: unable to open connection: syserr = Operation timed out.

Do I just need to configure /etc/nsmb.conf on the server and ~/.nsmbrc on the client for this to work?
 
On the 192.168.1.6 host, run nc -zv 192.168.1.8 445 Does that show it can make a connection?
 
Back
Top