I solved the problem fallowing this: http://www.macsat.com/macsat/content/view/27/29/
I start fw samba like this:
vi /opt/etc/init.d/S97Samba:
bin/sh
/usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/etc/samba/smb.conf
/usr/sbin/nmbd -D -n myasus -o -l /tmp -s /opt/etc/samba/smb.conf
I have smb.conf file like this:
[global]
workgroup = SMCE
guest account = nobody
security = share
browseable = yes
guest ok = yes
guest only = no
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_SNDBUF=8192
force user = admin
[OPTWARE]
path=/opt
writeable = yes
browseable = yes
[HDD]
path=/tmp/mnt
writeable = yes
browseable = yes
Everything goes fine, now i'm able to browse /opt from LAN, but i have this error in syslog:
Oct 15 13:59:47 smbd[197]: [2009/10/15 13:59:47, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
Oct 15 13:59:47 smbd[197]: unable to open smb password database.
Oct 15 13:59:47 smbd[197]: [2009/10/15 13:59:47, 0] passdb/smbpass.c:startsmbfilepwent_internal(87)
Oct 15 13:59:47 smbd[197]: startsmbfilepwent_internal: unable to open file /etc/smbpasswd. Error was No such file or directory
Oct 15 13:59:47 smbd[197]: [2009/10/15 13:59:47, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
Oct 15 13:59:47 smbd[197]: unable to open smb password database.
Oct 15 14:07:14 smbd[197]: [2009/10/15 14:07:14, 0] passdb/smbpass.c:startsmbfilepwent_internal(87)
Oct 15 14:07:14 smbd[197]: startsmbfilepwent_internal: unable to open file /etc/smbpasswd. Error was No such file or directory
Oct 15 14:07:14 smbd[197]: [2009/10/15 14:07:14, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
Oct 15 14:07:14 smbd[197]: unable to open smb password database.
Oct 15 14:07:14 smbd[197]: [2009/10/15 14:07:14, 0] passdb/smbpass.c:startsmbfilepwent_internal(87)
Oct 15 14:07:14 smbd[197]: startsmbfilepwent_internal: unable to open file /etc/smbpasswd. Error was No such file or directory
Oct 15 14:07:14 smbd[197]: [2009/10/15 14:07:14, 0] passdb/passdb.c:iterate_getsmbpwnam(149)
Oct 15 14:07:14 smbd[197]: unable to open smb password database.
Can enyone help me with this? From where is comming this error, and how can i avoid?
Thank you!