When I enabled debug option I could see the error msg as
lib/util_tdb.c:tdb_log(664)
  tdb(/usr/local/samba/private/secrets.tdb): *tdb_mmap failed for size 8192
(Inva
lid argument)*

And every time it prompts for username and password;
even though I reset password using smbpasswd and tried; same error appears;
any pointer what went wrong.
my smb.conf file

[global]
workgroup                      = WORKGROUP
netbios name                   = TEST
server string                  =
preferred master               = no
*security                       = user*
wins enable                    = no
*local master                   = yes*
hosts allow                    = 127.0.0.1 192.168.2. 192.168.200.
config file                    = /usr/local/samba/lib/smb.conf
os level                       = 8
load printers                  = no
log level                      = 3 passdb:5 auth:10 winbind:2
log file                       = /var/samba/log.%m
max log size                   = 10
encrypt passwords              = yes
smb passwd file                = /usr/local/samba/private/smbpasswd
socket options                 = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=16384
SO_RCV BUF=16384
dns proxy                      = no
preserve case                  = yes
short preserve case            = yes
default case                   = upper
case sensitive                 = no
mangled names                  = yes
null passwords                 = yes
dos filetimes                  = yes
force directory mode           = 771
force create mode              = 660
create mask                    = 771
map system                     = yes
map to guest                   = Bad User
guest account                  = guest

[public]
path                           = /share/data/public
guest ok                       = yes
comment                        = for public
browseable                     = yes
read only                      = yes
valid users                    = @administrators,@everybody
write list                     = @administrators,@everybody

[private]
path                           = /share/data/private
comment                        = private
browseable                     = yes
read only                      = yes
valid users                    = @administrators
write list                     = @administrators

thanks
bhagwat

Reply via email to