Happened to me also under similar circumstances. All you need to do is the following
sudo mkdir /var/lib/samba/private sudo touch /var/lib/samba/private/secrets.tdb then you can add your user -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu. https://bugs.launchpad.net/bugs/1327846 Title: Samba,Ubuntu 14.04,smbpasswd,failed to open var/libsamba/private/secrets.tdb To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1327846/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs