Hmm, I can't get Samba to work, I know it cant be anywhere far for working, but I don't have any ideas left :/
if I use "smbclient //localhost/tmp" to test samba, without giving password, it seem to work:
here I could us it as it should be (seems to work normal andI can browse my tmp dir)
But if I give it my password when it ask it:
I used "pdbedit -a -u MyAccountName" to add used and entered pass for it
I do know it reads options from smb.conf file, I try to chance some options like workgrp and it showed it when I logged as anonym.
when I gave pass while I try to log it did some log files:
But all of those are 0 bytes
But if I log without giving password and then quit, it adds to log. next trings:
What I should check next?
And my settings:
most of time I used http://www.csua.berkeley.edu/~ranga/notes/freebsd_samba.html quide and followed it somewhat carefully
if I use "smbclient //localhost/tmp" to test samba, without giving password, it seem to work:
Code:
$ smbclient //localhost/tmp
Password:
Anonymous login successful
Domain=[CATS] OS=[Unix] Server=[Samba 3.0.32]
smb: \> quit
$
here I could us it as it should be (seems to work normal andI can browse my tmp dir)
But if I give it my password when it ask it:
Code:
$ smbclient //localhost/tmp
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
$
I used "pdbedit -a -u MyAccountName" to add used and entered pass for it
I do know it reads options from smb.conf file, I try to chance some options like workgrp and it showed it when I logged as anonym.
when I gave pass while I try to log it did some log files:
Code:
-rw-r--r-- 1 root wheel 0 Apr 16 20:04 log.
-rw-r--r-- 1 root wheel 0 Apr 16 20:04 log.127.0.0.1
But all of those are 0 bytes
But if I log without giving password and then quit, it adds to log. next trings:
Code:
[2009/04/16 20:05:43, 1] smbd/service.c:make_connection_snum(1033)
(127.0.0.1) connect to service tmp initially as user nobody (uid=65534, gid=65534) (pid 68431)
[2009/04/16 20:05:45, 1] smbd/service.c:close_cnum(1230)
(127.0.0.1) closed connection to service tmp
What I should check next?
And my settings:
Code:
# testparm -s
Load smb config files from /usr/local/etc/smb.conf
Processing section "[homes]"
Processing section "[tmp]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = CATS
server string = Samba Server
interfaces = 192.168.1.4/24
passdb backend = tdbsam
log file = /var/log/samba/log.%m
max log size = 50
load printers = No
logon script = %U.bat
preferred master = Yes
domain master = Yes
dns proxy = No
hosts allow = 192.168.1., 192.168.2., 127.
[homes]
comment = Home Directories
read only = No
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
guest ok = Yes
#
most of time I used http://www.csua.berkeley.edu/~ranga/notes/freebsd_samba.html quide and followed it somewhat carefully