I installed samba4, added a share /test to smb.conf and tried to access it and got
$ smbclient -L localhost -U%
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
The log file /var/log/samba/log.%m (notice the buggy %m) contains
[2012/09/23 19:09:41, 0] ../lib/util/util_runcmd.c:334(samba_runcmd_io_handler)
/usr/sbin/smbd: Failed to exec child - No such file or directory
[2012/09/23 19:09:41, 0] ../file_server/file_server.c:98(file_server_smbd_done)
file_server smbd daemon exited normally
[2012/09/23 19:09:41, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [ldap_server: no LDAP server required in standalone configuration]
[2012/09/23 19:09:41, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [cldap_server: no CLDAP server required in standalone configuration]
[2012/09/23 19:09:41, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [kdc: no KDC required in standalone configuration]
[2012/09/23 19:09:41, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [dreplsrv: no DSDB replication required in standalone configuration]
[2012/09/23 19:09:41, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [Cannot start Winbind (standalone configuration): Failed to find record for GT683R in /var/lib/samba/private/secrets.ldb: No such object: (null): Have you provisioned this server (GT683R) or changed it's name?]
[2012/09/23 19:09:41, 0] ../source4/smbd/service_task.c:35(task_server_terminate)
task_server_terminate: [kccsrv: no KCC required in standalone configuration]
I removed all iptables rules. Attached is my smb.conf
I also tried smbpasswd -a munzir followed by smbclient -L localhost -U munzir but got same result
I installed samba4, added a share /test to smb.conf and tried to access it and got CONNECTION_ REFUSED)
$ smbclient -L localhost -U%
Connection to localhost failed (Error NT_STATUS_
The log file /var/log/ samba/log. %m (notice the buggy %m) contains util/util_ runcmd. c:334(samba_ runcmd_ io_handler) server/ file_server. c:98(file_ server_ smbd_done) smbd/service_ task.c: 35(task_ server_ terminate) server_ terminate: [ldap_server: no LDAP server required in standalone configuration] smbd/service_ task.c: 35(task_ server_ terminate) server_ terminate: [cldap_server: no CLDAP server required in standalone configuration] smbd/service_ task.c: 35(task_ server_ terminate) server_ terminate: [kdc: no KDC required in standalone configuration] smbd/service_ task.c: 35(task_ server_ terminate) server_ terminate: [dreplsrv: no DSDB replication required in standalone configuration] smbd/service_ task.c: 35(task_ server_ terminate) server_ terminate: [Cannot start Winbind (standalone configuration): Failed to find record for GT683R in /var/lib/ samba/private/ secrets. ldb: No such object: (null): Have you provisioned this server (GT683R) or changed it's name?] smbd/service_ task.c: 35(task_ server_ terminate) server_ terminate: [kccsrv: no KCC required in standalone configuration]
[2012/09/23 19:09:41, 0] ../lib/
/usr/sbin/smbd: Failed to exec child - No such file or directory
[2012/09/23 19:09:41, 0] ../file_
file_server smbd daemon exited normally
[2012/09/23 19:09:41, 0] ../source4/
task_
[2012/09/23 19:09:41, 0] ../source4/
task_
[2012/09/23 19:09:41, 0] ../source4/
task_
[2012/09/23 19:09:41, 0] ../source4/
task_
[2012/09/23 19:09:41, 0] ../source4/
task_
[2012/09/23 19:09:41, 0] ../source4/
task_
$ sudo netstat -tunap |grep samba
tcp 0 0 0.0.0.0:1024 0.0.0.0:* LISTEN 5374/samba
tcp 0 0 0.0.0.0:135 0.0.0.0:* LISTEN 5374/samba
tcp6 0 0 :::1024 :::* LISTEN 5374/samba
tcp6 0 0 :::135 :::* LISTEN 5374/samba
udp 0 0 192.168.122.1:137 0.0.0.0:* 5376/samba
udp 0 0 192.168.122.255:137 0.0.0.0:* 5376/samba
udp 0 0 192.168.1.38:137 0.0.0.0:* 5376/samba
udp 0 0 192.168.1.255:137 0.0.0.0:* 5376/samba
udp 0 0 0.0.0.0:137 0.0.0.0:* 5376/samba
udp 0 0 192.168.122.1:138 0.0.0.0:* 5376/samba
udp 0 0 192.168.122.255:138 0.0.0.0:* 5376/samba
udp 0 0 192.168.1.38:138 0.0.0.0:* 5376/samba
udp 0 0 192.168.1.255:138 0.0.0.0:* 5376/samba
udp 0 0 0.0.0.0:138 0.0.0.0:* 5376/samba
I removed all iptables rules. Attached is my smb.conf
I also tried smbpasswd -a munzir followed by smbclient -L localhost -U munzir but got same result