Code:
[2013/04/06 23:52:27, 7, pid=12982, effective(0, 0), real(0, 0)] ../source3/param/loadparm.c:5134(lp_servicenumber)
lp_servicenumber: couldn't find homes
[2013/04/06 23:52:27, 4, pid=12982, effective(0, 0), real(0, 0)] ../source3/smbd/sec_ctx.c:176(get_current_groups)
get_current_groups: user is in 3 groups: 0, 10512, 10572
[2013/04/06 23:52:27, 2, pid=12982, effective(0, 0), real(0, 0)] ../lib/tdb_wrap/tdb_wrap.c:64(tdb_wrap_log)
tdb(/var/lock/samba4/messages.tdb): tdb_open_ex: could not open file /var/lock/samba4/messages.tdb: Permission denied
[2013/04/06 23:52:27, 2, pid=12982, effective(0, 0), real(0, 0)] ../source3/lib/messages_local.c:132(messaging_tdb_init)
ERROR: Failed to initialise messages database: Permission denied
[2013/04/06 23:52:27, 2, pid=12982, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:203(messaging_init)
messaging_tdb_init failed: NT_STATUS_ACCESS_DENIED