LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   public samba share not working for windows clients (https://www.linuxquestions.org/questions/linux-software-2/public-samba-share-not-working-for-windows-clients-393557/)

kilgor 12-16-2005 08:19 AM

public samba share not working for windows clients
 
Hi,

have trouble setting up a public share in samba.

Got security set to user. Have several system users who use samba. They are devided into groups and shares have different write lists etc. So security = share is not acceptable.

I now got a request to add a public share for guests, that would be random folks on the internal network.

[public]
comment = bla
path = /var/bla
read only = yes
guest ok = yes
write list = @staff
browseable = yes

in [global] I added guest account = yes.

I didn't create any "guest" user in /etc/passwd nor /etc/samba/smbpasswd, as I understand I don't need to either.

I tested it with smbclient from a remote linux box first and it worked just perfect, but the password had to be blank/missing. If I specified one, I got access denied.

When I try to connect from a WinXP machine, I can't get in. It throws a new login window at me when I specify the user 'guest' and no password. The same with a random password.

My theory is, that windows sends some junk password/hash anyway with user "guest", although I didn't type anything in. If that's the problem, how do I tell samba to ignore the password all together. Otherwise, what else could possibly cause this?

'guest only = yes' is not an acceptable option and it didn't work anyway.

Thanks.

amitsharma_26 12-16-2005 09:15 AM

Do
chown nobody:nobody /var/bla

&

In global meta-service
add a line
Quote:

map to guest = Bad user
Thats it.

..amit..

kilgor 12-16-2005 10:32 AM

solved
 
Quote:

Originally Posted by amitsharma_26
"map to guest = Bad user"

That was it, thanks a lot!


All times are GMT -5. The time now is 05:19 AM.