zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Samba passwd smbpasswd and tdbsam

November 18, 2011 by Igor Drobot Leave a Comment

Some 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:

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

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

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

1
pdbedit -i smbpasswd:/etc/samba/smbpasswd -e tdbsam:/etc/samba/passdb.tdb

pdbedit -i smbpasswd:/etc/samba/smbpasswd -e tdbsam:/etc/samba/passdb.tdb

Filed Under: Linux, Networking Tagged With: passwd, Samba, smb, smbpasswd, tdbsam

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok