Date: Sat, 24 May 2008 14:38:41 +0200 From: "Christian Zachariasen" <chrizach@gmail.com> To: "Ruel Luchavez" <ruel.freebsd@gmail.com>, "FreeBSD Mailing Lists" <freebsd-questions@freebsd.org> Subject: Re: Samba user failed..Corrupt Message-ID: <4a89d1190805240538o45eab4caj33abc19ff6afa204@mail.gmail.com> In-Reply-To: <ee9dc2b40805240105o6335cf70q10adf5cad62cfa9d@mail.gmail.com> References: <ee9dc2b40805240105o6335cf70q10adf5cad62cfa9d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 24, 2008 at 10:05 AM, Ruel Luchavez <ruel.freebsd@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4a89d1190805240538o45eab4caj33abc19ff6afa204>