Samba passwd smbpasswd and tdbsam

ome commands to convert samba backend password-databases.

If you use “passdb backend = smbpasswd” in your smb.conf you must convert your system-user accounts to smbpasswd:

cat /etc/passwd | mksmbpasswd >/etc/samba/smbpasswd

 

you use “passdb backend = tdbsam” in your smb.conf you must convert your system-user accounts to passdb.tdb

pdbedit -i smbpasswd:/etc/samba/smbpasswd -e tdbsam:/etc/samba/passdb.tdb
posted @ 2015-02-13 22:59  心哲  阅读(1409)  评论(0编辑  收藏  举报