Setting up Samba
Updated: 10/21/2003
General Information
Just how do you get your Windows machines to access your FreeBSD server and printers? The trick is with Samba. Here I'm going to show you how to setup Samba so your server will appear in 'My Network Places' and configured for user account access.Requirements
Installation
|
# # |
cd /usr/ports/net/samba make install clean |
Configuration
Now that Samba is installed, we need to configure it for your network before we fire it up.Section A -- inetd
| # | nano /etc/inetd.conf |
|
swat stream tcp nowait/400 root /usr/local/sbin/swat swat |
| # | killall -HUP inetd |
Section B -- Samba
Bring up SWAT (Samba Web Administration Tool)| # | lynx http://localhost:901 |
root
Globals'netbios name to whatever you want your server to come up as in 'My Network Places'yes' to encrypt passwordsCommit Changes' to saveShares'Create Share' type in your share name (I used 'Share') and then select 'Create Share'no' for read only if you want your users to be able to writeyes' for guest ok to allow for anonymous access to the shared directoryCommit Changes' to savePassword Management'/etc/passwd
Add User'Status'smbd and nmbdNote: Any time you make a future change to the configuration, you need to restart both services.
You now can test this by logging in through 'My Network Places.'Author: Jon LaBass
jon at bsdguides dot org