On Tue, Feb 21, 2006 at 09:04:24AM +0100, Olaf van der Spek wrote: > debian:/var/lib/samba# rm passdb.tdb > debian:/var/lib/samba# cd /etc/samba/ > debian:/etc/samba# getent passwd | /usr/sbin/mksmbpasswd > > /etc/samba/smbpasswd > debian:/etc/samba# pdbedit -i smbpasswd -e tdbsam > TDBSAM version too old (0), trying to convert it. > TDBSAM converted successfully. > debian:/etc/samba#
Right. I can actually reproduce this, now; I don't know why I couldn't earlier. This first warning message is caused by initialization of passdb.tdb from scratch. The rest of the warning messages are caused by initialization of account_policy.tdb from scratch. We can suppress all but the first warning by calling pdbedit -i smbpasswd -e tdbsam -y > /dev/null before calling pdbedit -i smbpasswd -e tdbsam, which will make sure we copy any existing account policies as well (but I don't think it's possible for there to be any?). Otherwise, just redirecting stdout to /dev/null for the entire pdbedit command will suppress all of these warnings, but I'm not sure that won't suppress other, more important messages. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/
signature.asc
Description: Digital signature