by strampke » Fri Nov 13, 2009 6:10 pm
My adventures and I hope others can learn from it.
Ok, I can get a connection from XP (hvdw) to my Freesco Samba server (inet).
When I log in with the name "abcd"and password "efgh" I added to the passwd file access is rejected.
But the user then is changed from "abcd" to hvdw\abcd
log.smbd says
[2009/11/13 23:12:58, 0] smbd/server.c:main(707)
smbd version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2009/11/13 23:12:58, 1] lib/debug.c:debug_message(258)
INFO: Debug class all level = 1 (pid 2869 from pid 2869)
samba.hvdw says
[2009/11/13 23:24:01, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369)
unable to open passdb database.
[2009/11/13 23:24:01, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'abcd' in passdb.
[2009/11/13 23:24:01, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369)
unable to open passdb database.
[2009/11/13 23:24:01, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'abcd' in passdb.
[2009/11/13 23:24:01, 1] smbd/reply.c:reply_sesssetup_and_X(1001)
Rejecting user 'test': authentication failed
Then I created a smbpasswd file with user "abcd"
GOTCHA!!!!
Next thing to figure out is why in XP explorer my XP clients have disappeared and only my Freesco Samba share is present.
Next step was installing 2.2.8 and it works too.
But now I have to find out why I can gain access without even being prompted for name and password.
The main secret to everything is this:
- Goto smb.conf
- delete or comment the line # smb passwd file = /bin/passwd
- go to /boot/pkg/usr/local/samba/bin
- create a password file with smbpasswd -a abcd , where abcd is your new user
- rc_samba restart and you're done
Who knows knows, who doesn't doesn't.