From owner-freebsd-questions Sat Oct 2 2: 6: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from lvdi.net (Mta.lvdi.net [216.24.138.2]) by hub.freebsd.org (Postfix) with SMTP id 80E9F14ECE for ; Sat, 2 Oct 1999 02:05:57 -0700 (PDT) (envelope-from notme@lvdi.net) Received: from lvdi.net ([216.24.141.133]) by 216.24.138.2127.0.0.1 ; Sat, 02 Oct 1999 02:00:31 2000 PDT Message-ID: <37F5CD17.DDF20615@lvdi.net> Date: Sat, 02 Oct 1999 02:15:03 -0700 From: Frankie Li X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: "Jonathan E. Lyons" Cc: Richard Morte , FreeBSD-questions@freebsd.org Subject: Re: SAMBA passwords/Encryption References: <3.0.5.32.19991001152458.00970650@midwest.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I believe that you can find this file called "mkmbpasswd.sh" from the samba site. However, you have to populate the password file yourself. After doing so, I believe that you can sync the password file with the /etc/master.passwd. What I did was to create the "stub" smbpasswd file by mksmbpasswd.sh, then use smbpasswd -s (silent mode which also reads from standard input/output) to change the user's password to those of the /etc/master.passwd. However, I have all the username and password typed into a text file though... I personally don't consider that as very secure, but as a high school student, I lacked the knowledge to decrypt master.passwd's encryption. :) Hope that I answered your question and fulfilled your curiosity! Frankie "Jonathan E. Lyons" wrote: > Just out of curiosity, is there a way to use samba with encrypted passwords > without having to create new users with the smbpasswd utility? I'd like my > users to use the same username and password defined in the master password > files... > > Thanks!... > > >If you're using WinNT SP3 or higher (or 98), then you need to make sure > >you're using encrypted passwords in samba. > > > >The line to add to the global section of your samba config is: > > > >encrypt passwords = Yes > > > >Then, you add accounts via the smbpasswd utility. The samba password file > >resides in /usr/local/private/smbpasswd. > > > >Joe Clarke > > > >On Fri, 1 Oct 1999, Richard Morte wrote: > > > >> Hi, > >> > >> I have SAMBA configured for FReeBSD and a number of Win machines. I can > >see > >> all the UNIX shares from the Win boxes. Those that have no restrictions > >> applied in smb.conf (eg the /tmp share) will allow file transfer to and > >from > >> these directories; but Windows will not allow access to those directories > >> that have restrictions (eg to /home/ric) and require a password. > >> > >> Windows returns the message: The password is incorrect. Try again. > >> > >> Is this a problem at the Windows end (something to do with profiles???) or > >> is it that Samba needs to be configured to lookup passwords? At the moment > >> valid usernames and passwords have been created only for UNIX logons (i.e. > >> /etc passwds). > >> > > Jonathan E. Lyons > parrothd@midwest.net Nucleus Consulting > ICQ # 14226912 www.nucleusconsulting.com > Cell # 773-251-1967 A+, MCSE, CCNA, FreeBSD! > Pager # 7732511967@mobile.att.net > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message