[Samba] Multiple problems with 2.2.7a-0.2

Allison Jones ajones at answers4families.org
Fri Jan 17 00:18:00 GMT 2003

As the subject line indicates, I'm having multiple problems with
2.2.7a-0.2 .  I compiled from source using the instructions for creating a
debian package, then did a dpkg -i of the packages that were built.  Prior
to running 2.2.7a-0.2, I was running 2.2.3a from the stable debian
package.  I switched to 2.2.7a-0.2 because of the ongoing problem with
default printer settings on builds prior to 2.2.6.

My problems are multiple and as follows:

First, users cannot change their passwords.  The relevant configuration
lines from smb.conf are:

   encrypt passwords = true
   unix password sync = true
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
   passwd chat debug = yes

When I try to change my password from W2K, I get the following log
[2003/01/16 17:45:00, 1] smbd/reply.c:reply_sesssetup_and_X(1001)
  Rejecting user 'ajones': authentication failed
[2003/01/16 17:45:00, 0] lib/util_sec.c:assert_gid(114)
  Failed to set gid privileges to (0,65534) now set to (0,-1)
[2003/01/16 17:45:00, 0] lib/util.c:smb_panic(1094)
  PANIC: failed to set gid

Problem #2 part a:

   When I upgraded from 2.2.3a to 2.2.7a-0.2, the trust relationship
between the server and workstations was destroyed.  This is the second or
third time I've had this unfortunate experience.  Which files are
responsible for the trust relationship?  Is there any way to restore the
relationship without removing and re-adding the workstations to the

Problem #2 part b:

   When re-adding the computers to the domain, I have to manually delete
the machine accounts from my /etc/passwd and smbpasswd files, then
manually re-add them.  I have an add user script defined in smb.conf:

   add user script = /usr/sbin/useradd -g machines -c NTMachine -d
/dev/null -s /bin/false %m$ && /usr/bin/smbpasswd -a -m %m$

  I also have
 admin users = ajones, rlim, root
 domain admin group = @root

Out of sheer desperation I have allowed root to log in (ie root is not an
invalid user), but the automatic adding of the computer to the domain
doesn't work.

Problem #3:

  As far as I can tell, printer settings are supposed to work in 2.2.7a .
I have an HP4100dtn, HP4500, Konica 7055 (IP-304), and HP4600dn.  I can
install the drivers for these printers just fine, and the drivers
automatically download.  However, I can configure the driver;  Any time I
make a setting change (like choosing 4100dtn or checking the duplex box),
the changes do not stay.  I have the following line in my smb.conf

 admin users = ajones, rlim, root

Could someone please offer some advice?  Thanks.


Allison Jones                              (402)472-0458 Office
Computer Specialist                        (402)472-8412 Fax
Answers for Families                       http://www.answersforfamilies.org/

More information about the samba mailing list