From owner-freebsd-questions@FreeBSD.ORG Sat May 24 12:38:42 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 EF9BD106566B for ; Sat, 24 May 2008 12:38:41 +0000 (UTC) (envelope-from chrizach@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id CBA438FC1B for ; Sat, 24 May 2008 12:38:41 +0000 (UTC) (envelope-from chrizach@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1367831rvf.43 for ; Sat, 24 May 2008 05:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Wd22tRGhyqn4E495GhvU4y5kLgN97nmLhXAzZPRpKSY=; b=sTBTwe9WqzCS0sdKHOeg7Y5fctKDslWqavi3xgbB3u+EVsB1L18eueFQgPW3UrRyBUFgKxgIK4UFsFboAL8BLPwyK7E7RaZOjrybBcb7c9zfUwAWwdnp2BxYacZ7HZfRRp2mCNfiiEf8O8u3Gqs0TbWUZNh+dnp31bNsFkDtuNw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=YuarKn66sxl2VIB4z5jM4I5KRq9X+A03kFMc/ZeK45q/8e20WjypilHh0/XWuqPEbc2T7SyRUKU6JFbz6i6Rm+VeuhnibwOIhsxczck8bDCdMQddnTvN5Are/WmiyuZN370jmUXi4BbCIC8j6oUkxctNz7i+n24OxEBTiBW04Hc= Received: by 10.141.36.10 with SMTP id o10mr1180152rvj.176.1211632721501; Sat, 24 May 2008 05:38:41 -0700 (PDT) Received: by 10.140.142.18 with HTTP; Sat, 24 May 2008 05:38:41 -0700 (PDT) Message-ID: <4a89d1190805240538o45eab4caj33abc19ff6afa204@mail.gmail.com> Date: Sat, 24 May 2008 14:38:41 +0200 From: "Christian Zachariasen" To: "Ruel Luchavez" , "FreeBSD Mailing Lists" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Samba user failed..Corrupt 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: Sat, 24 May 2008 12:38:42 -0000 On Sat, May 24, 2008 at 10:05 AM, Ruel Luchavez wrote: > Regards to ALL, > > Guys do you have an idea how to fix this? > Every time I add this user in my samba it always got an error: > > #smbpasswd -a John > New SMB password=xxxxx > Retype password=xxxxx > build_sam_account: sambapasswd database is corrupt! username Joh with uid > 1001 is not in unix passwd database! > add_smbfilepwd_entry: entry with name John already exists > Failed to add entry for user John > Failed to modify password entry for user John > > >From what i know the server declare that the user is existing, BUT i have > already remove the user (rmuser -y ruel) > > Idea pleaseeeee..I'm stock with this..or is this a BUGS? > Thanks in advance > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" You say you have already rmuser'd John from your system, but in your post you wrote rmuser -y ruel. I'm assuming this is a spelling mistake. I've never seen this error before and wasn't able to reproduce it on my system, but this is what I'd do: If we assume the user name you want to add is actually John, then rmuser -y John first of all. Make a backup of /usr/local/etc/samba/smbpasswd and then delete the smbpasswd file. Type adduser and add John as you normally would, then type smbpasswd -a John. Christian Zachariasen