From owner-freebsd-questions@FreeBSD.ORG Mon Jan 7 14:57:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77EE516A419 for ; Mon, 7 Jan 2008 14:57:32 +0000 (UTC) (envelope-from jontheil@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.188]) by mx1.freebsd.org (Postfix) with ESMTP id E304C13C4E8 for ; Mon, 7 Jan 2008 14:57:31 +0000 (UTC) (envelope-from jontheil@gmail.com) Received: by mu-out-0910.google.com with SMTP id w8so5184809mue.4 for ; Mon, 07 Jan 2008 06:57:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:x-mimeole:from; bh=5jO+CcykwBOI0Ks+kX6OHFy6+wMJt79tG7diOE4k70E=; b=fTNSHQbXJ0kDyF4bGPWeMl7rll39hGGrIzA9eWs9rZcbp2q2pR1cQrIHMbAKQnL7tygNTJgyPfA4HTemgHnDDNNGTMB2z7XSagLuMqyXQbk7rfYta0s0HlTiJYoNO39vGqj/nRODNo/JbHI9XtaTxqkBuj+nkejbOodWn8Sbhws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:x-mimeole:from; b=FaOm5zLX31Le4bfoDxyctAvOqt583sPl6Tw/5k4M40zvaBxlE1X25b3noODAvX6TD4oMHzr0rTEexKcuVl9kyg7O5JI8ENwZTo/MWrBhuOh4lnTV0qFj8kT2+o9p+vPgUbk0rn8aS0g5aJAtjejdNjjbNqM4X8hox9lg8OYv6yg= Received: by 10.82.150.20 with SMTP id x20mr35502466bud.5.1199716283909; Mon, 07 Jan 2008 06:31:23 -0800 (PST) Received: from mfl5vista ( [192.38.112.134]) by mx.google.com with ESMTPS id w26sm9859603gvc.19.2008.01.07.06.31.21 (version=SSLv3 cipher=OTHER); Mon, 07 Jan 2008 06:31:22 -0800 (PST) To: Date: Mon, 7 Jan 2008 15:31:05 +0100 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AchROe91nZZN4fnMReSB2c4DPliT1w== X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.17052 From: Jon Theil Nielsen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Samba: changing UNIX passwords from Windows X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2008 14:57:32 -0000 Hello We have a FreeBSD server (7.0 BETA3) running as PDC (Samba 3.0.28) passwords stored in tdbsam. Theres are no problems for users and machines to log on to the network as long as they use the passwords I have made by smbpasswd -a username. But I cannot make a working configuration which allows users to change their own passwords on the server. They are told something like "You do not have permission to change your password". I guess the problem is the communication between Samba and the server, the passwd chat, but I'm not sure. I have the following lines in smb.conf passwd program = /usr/bin/passwd %u unix password sync = Yes passwd chat = *New*password* %n\n *Retype*new*passwordn* %n\n I'm not sure the chat is correct and would like to hear about what migth be more correct for this version of FreeBSD. I have tried to set passwd chat debug = Yes, but that did not provide any useful (to me, at least) information on the nature of the problem. I haven't been able to find much information on this issue between FreeBSD and Samba, bur I'm sure there must be a solution. I don't know if the solution is to use another password database (e.g. LDAP), but this seems to be a rather complicated issue too. Regards, Jon Theil Nielsen