[2014/11/17 00:39:06, 1] lib/util_unistr.c:113(load_case_tables) creating lame upcase table [2014/11/17 00:39:06, 1] lib/util_unistr.c:128(load_case_tables) creating lame lowcase table [2014/11/17 00:39:06, 0] smbd/server.c:1143(main) smbd version 3.5.22 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2014/11/17 00:39:07.998854, 1] passdb/pdb_tdb.c:503(tdbsam_open) tdbsam_open: Converting version 0.0 database to version 4.0. [2014/11/17 00:39:08.002054, 1] passdb/pdb_tdb.c:282(tdbsam_convert_backup) tdbsam_convert_backup: updated /etc/samba/passdb.tdb file. [2014/11/17 00:39:08.078602, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 1 (min password length), returning 0 [2014/11/17 00:39:08.079765, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 2 (password history), returning 0 [2014/11/17 00:39:08.080854, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 3 (user must logon to change password), returning 0 [2014/11/17 00:39:08.081937, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 4 (maximum password age), returning 0 [2014/11/17 00:39:08.102003, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 5 (minimum password age), returning 0 [2014/11/17 00:39:08.103191, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 6 (lockout duration), returning 0 [2014/11/17 00:39:08.104276, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 7 (reset count minutes), returning 0 [2014/11/17 00:39:08.105359, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 8 (bad lockout attempt), returning 0 [2014/11/17 00:39:08.106471, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 9 (disconnect time), returning 0 [2014/11/17 00:39:08.107550, 1] lib/account_pol.c:325(account_policy_get) account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0
Any ideas?
Thanks in advance
Update:In my Samba configuration I have one user only.I have noticed that if I delete and re-create this user, once the Samba sever has been restarted, shares start to work perfectly.If I restart all services from System --> Utilities, Samba shares are still present.BUT if I reboot DNS323 the problem reoccurs; I get a looping username/password request and no access.
credentials.*smb.confsmbpasswdsmbusers
Hello João,I haven't customized samba, not at all.Following your suggestions I confirm that no files exists under /var/spool/samba and that /Alt-F/etc/samba doesn't exist.In /etc/samba/ I've deleted all files (secrets.tdb and passdb.tdb) except files you told me.After restarting Samba i get a user/pass request (obviously, doesn't work) and no access to shares; the only difference it's in samba log file[2014/11/18 23:49:48, 0] smbd/server.c:1143(main)smbd version 3.5.22 started.Copyright Andrew Tridgell and the Samba Team 1992-2010[2014/11/18 23:49:49.439830, 1] passdb/pdb_tdb.c:503(tdbsam_open)tdbsam_open: Converting version 0.0 database to version 4.0.[2014/11/18 23:49:49.449285, 1] passdb/pdb_tdb.c:282(tdbsam_convert_backup)tdbsam_convert_backup: updated /etc/samba/passdb.tdb file.[2014/11/18 23:50:33.634023, 0] lib/util_sock.c:474(read_fd_with_timeout)[2014/11/18 23:50:33.634957, 0] lib/util_sock.c:1441(get_peer_addr_internal)getpeername failed. Error was Transport endpoint is not connectedread_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.Rebooting DNS323, same result: doesn't work and samba log file it's the same as below. (my post of november 17).In this case I've tried not to delete user but I've changed the password (putting the same); after doing this, all works.
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /etc/samba/passdb.tdb file.
account_policy_get: tdb_fetch_uint32 failed for type 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0
#!/bin/sh
# redirect the current shell environment to fixes.log
exec >> /var/log/fixes.log 2>&1
export PATH=$PATH:/mnt/md0/scripts
# Waiting for Alt-F packages to be available (e.g. sshd)
echo -n "Waiting for Alt-F packages to be available:"
while ! aufs.sh -s >& /dev/null; do
echo -n '.'
sleep 1
done
echo OK
./mnt/md0/scripts/svnserve.sh restart
rcsmb restart
I just recently installed Alt-F 0.1RC4.1 with kernel 3.10.32 on my DNS-323 rev C. I've been having the same problem with SAMBA not starting up properly on reboot, but in my case I could simply restart the service and it would start working.
in my case I could simply restart the service and it would start working.
I tried to follow the instructions above by deleting the extra files, but that didn't help. At the moment, I have a startup script that I'm using to wait, then restart the service... but is there something else I should be doing? I uninstalled samba-small and installed samba + samba-modules (so I could use VFS for the recycle bin) - maybe that has something to do with it?