LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba not working as intended. Private / Public share's (http://www.linuxquestions.org/questions/linux-networking-3/samba-not-working-as-intended-private-public-shares-423993/)

ILikeVoltron 03-12-2006 12:05 AM

Samba not working as intended. Private / Public share's
 
My current smb.conf file.
Code:

[global]
workgroup = WORKGROUP
netbios name = DEATHSTAR
security = user
passdb backend = tdbsam:/etc/samba/private/passdb.tdb
;guest account = nobody
;wins server = 192.168.1.1
[Private]
comment = Private share
path = /home/pub
guest ok = no
read only = no
[Public]
comment = Public share
path = /home/pub/uploads/public
read only = no
guest ok = yes
guest only = yes

Basically what we have here are two shares, a private and public one. Private should be forced to login with a valid account, while Public should be read/write by everybody including people who do not login.

Overall it seems like I've had the same .conf work multiple diffrent ways, sometimes I'm forced to login, other times my Private share requires no longin at all. I'm quite confused about all of this.

scheidel21 03-12-2006 01:58 AM

It may be one of two things Windows may be remmebering th epassword and username and logging you on to the share. OR WinXP will try to pass the current username/password combo that a user is logged on under on the XP machine so if that username/pass is the same as for the private share it may be autologging you in.

ILikeVoltron 03-12-2006 02:24 AM

Quote:

Originally Posted by scheidel21
It may be one of two things Windows may be remmebering th epassword and username and logging you on to the share. OR WinXP will try to pass the current username/password combo that a user is logged on under on the XP machine so if that username/pass is the same as for the private share it may be autologging you in.

The login password combination I am using for my share is not the same as my login for WinXP.

ILikeVoltron 03-14-2006 04:22 PM

I added this to [global] and now it works fine.
Code:

map to guest = Bad Password


All times are GMT -5. The time now is 09:31 PM.