openbsd-ports/net/samba/files
peter c4f14f0bfa Update to samba 2.0.7
This version was released on 25th April 2000 and includes the usual
slew of bug fixes and some new features, including Windows 2000
support.

One additional feature is the inclusion of the HTML of book "Using
Samba" which is made available through the SWAT interface. I am not
quite sure what the consensus is regarding HTML docs and the delivery
method for OpenBSD, so comments are, as usual, welcome.
2000-07-19 10:15:02 +00:00
..
md5 Update to samba 2.0.7 2000-07-19 10:15:02 +00:00
README.OpenBSD upgrade to samba 2.0.3; Andrew Lambeth <andrew@nfr.net> 1999-03-19 09:06:04 +00:00

Using samba package in OpenBSD environment:

1. Copy /usr/local/lib/samba/smb.conf.sample to /etc/samba/smb.conf and edit
   it.

2. Edit /etc/rc.conf file:
   ...
   smbd=YES
   nmbd=YES
   ...

3. Edit /etc/rc.local file:
   echo -n 'starting local daemons:'
   ...
   if [ -f /etc/samba/smb.conf ]; then
       if [ X"${smbd}" = X"YES" -a -x /usr/local/sbin/smbd ]; then
           echo -n ' smbd';    /usr/local/sbin/smbd -D
       fi
       if [ X"${nmbd}" = X"YES" -a -x /usr/local/sbin/nmbd ]; then
           echo -n ' nmbd';    /usr/local/sbin/nmbd -D
       fi
   fi
   ...
   echo '.'

Steps 4 and 5 are only necessary if you want to enable swat (Samba 
Web Administration Tool.)  Please note that administering the the 
server with swat over a network is inadvisable as passwords are passed
in the clear.  You can avoid this problem by using ssh forwarding to port
901.

4. add the following entry to /etc/inetd.conf:

   ...
   swat    stream  tcp     nowait.400      root    /usr/local/sbin/swat    swat
   ...

5. add the following entry to /etc/services:

   ...
   swat            901/tcp                 # samba admin service
   ...

See documentation files in /usr/local/share/doc/samba and example config
files in /usr/local/share/examples/samba for more information.