PDA

View Full Version : samba bug



bluesmoke
31-03-2006, 23:27
hi,
i am a win xp professional sp2 user.

i can use every username i want to connect with the sambaserver.
only the password has to be the right one!!
i tried it on an other win xp pc with the help of andywhy and there was the same problem!!

additional to that, i can use every password that is written in the smbpasswd to get on every share i want!!!!

bluesmoke
03-04-2006, 20:45
has no one other this problem with win xp, or am i the only one who use windows xp here????

Ade
04-04-2006, 21:00
Which firmware are you using?

If you've got a smb.conf file you'll probably need a line

security = user

I'm using Windows XP and it seems to need the correct password for the user used.

Cheers.

bluesmoke
08-04-2006, 09:17
hi,
i changed it to: security = user.
Now i have to fill in the username.
But i can use every username with the correct password to see all folders!!!!

cu

Ade
13-04-2006, 22:07
Do you have a list of valid users for each of the shares?

If you feel like posting your smb.conf file (edited if you want to keep real names secret) then that might show if there is a problem in your configuration.

Regards.

bluesmoke
19-04-2006, 08:54
this is my smb.conf:

[global]
interfaces = br0
bind interfaces only = yes
workgroup = msheimnetz
guest account = nobody
security = user
browseable = yes
guest ok = no
guest only = no
log level = 1
max log size = 100
encrypt passwords = yes
preserve case = yes
short preserve case = yes

[thorsten]
path = /tmp/harddisk/thorsten
writable = yes
valid user = thorsten

[sabrina]
path =/tmp/harddisk/sabrina
writable = yes
valid user = sabrina


[tobias]
path =/tmp/harddisk/tobias
writable = yes
valid user = tobias



i can open each folder with every password and username!!!
the name and password must only stand in the smbpasswd.

cu

Ade
23-04-2006, 19:43
I think that the correct samba syntax is "valid users" not "valid user", so you could try changing that. Have you looked at the log files to see whats happening
once its up and running?

I also found this article on the samba site FAQ which might throw some light on the matter

http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection/securing-samba.html#id2585559

So you might need to change the default file permissions as well just to make sure.

Hope this helps.