From owner-freebsd-questions Fri Mar 17 7:21: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from merlin.onsea.com (p28s06a01.client.global.net.uk [195.147.134.41]) by hub.freebsd.org (Postfix) with ESMTP id C317037BE01 for ; Fri, 17 Mar 2000 07:21:02 -0800 (PST) (envelope-from dozprompt@onsea.com) Received: from localhost (dozprompt@localhost) by merlin.onsea.com (8.9.3/8.9.3) with ESMTP id PAA02897; Fri, 17 Mar 2000 15:21:02 GMT (envelope-from dozprompt@onsea.com) X-Authentication-Warning: merlin.onsea.com: dozprompt owned process doing -bs Date: Fri, 17 Mar 2000 15:21:01 +0000 (GMT) From: Cliff Rowley To: Per Arve Cc: freebsd-questions@FreeBSD.ORG, samba@mail.anu.edu.au Subject: Re: Samba In-Reply-To: <38D2431D.C49F7724@mt.luth.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I have installed samba during installation of freebsd. It turned out not > to install as the samba man pages suggest, nor did the freebsd ports > collection. Does this create any particular changes in the smb.conf file > or other configuration parameters, that I need to take care of. Nothing wrong with the installation :) > Does anyone have a smb.conf for the following simple situation. I am > setting up a local network of 4 to 8 Win95 machines, a printer hooked to > the ethernet, and a freebsd running samba to function as a printserver > for the PC's. The freebsd machine can print fine at the moment. I like > to get an example of how to configure the win95's and samba. Please, > send me advice on how to set this up including explicit example smb.conf > fiel and setup of the win95 network controllpanel that work together. SWAT is a *great* tool btw. To use is, first add the following line to /etc/services (I added mine after accessbuilder 888/tcp): swat 901/tcp Then etc /etc/inetd.conf and add the following line: swat stream tcp nowait root /usr/local/sbin/swat swat Then killall -HUP inetd Now fire up a web browser, and point it toward the machine you just setup swat and samba on on port 901. For example, my samba box is called merlin: http://merlin:901 You will then be prompted for your username/password. Be careful here - if your LAN is not secure (i.e. you have other users on your LAN) your password will be exposed on the LAN, and it's your root password. If your LAN is not secure, forget swat. If it's ok, then enter your root username and password. You will then be looking at a web based Samba configuration tool, and it rocks. That's configuring Samba sorted. Onto the next problem. > Do I need to create a particular user in the unix system for the > pc-ursers. Normally, they will not have their own account on the freebsd > machine. Use smbpasswd. They obviously need a password to access the shares, and using smbpasswd means they dont have to have a system account. Here's an example: smbpasswd -a plonker The -a flag means add. You will then be prompted twice for the password for that user (in this case, plonker). 'man smbpasswd' for more information. That's it. Your users will now have access to the smb shares. HTH Cliff Rowley - while (!asleep) { code(); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message