2005-04-03 07:20:37 -04:00
|
|
|
Using samba package in an OpenBSD environment:
|
1998-05-04 00:10:39 -04:00
|
|
|
|
2005-04-03 07:20:37 -04:00
|
|
|
1. Edit ${SYSCONDIR}/samba/smb.conf to suit your needs.
|
1998-05-04 00:10:39 -04:00
|
|
|
|
2005-04-03 07:20:37 -04:00
|
|
|
2. Edit ${SYSCONDIR}/rc.conf.local:
|
1998-08-11 09:32:35 -04:00
|
|
|
...
|
2003-01-29 18:10:14 -05:00
|
|
|
smbd_flags="-D" # for normal use: "-D"
|
|
|
|
nmbd_flags="-D" # for normal use: "-D"
|
1999-03-19 04:06:04 -05:00
|
|
|
...
|
1998-05-04 00:10:39 -04:00
|
|
|
|
2005-04-03 07:20:37 -04:00
|
|
|
3. Edit ${SYSCONDIR}/rc.local:
|
1998-08-11 09:32:35 -04:00
|
|
|
echo -n 'starting local daemons:'
|
|
|
|
...
|
2005-04-03 07:20:37 -04:00
|
|
|
if [ -f ${SYSCONDIR}/samba/smb.conf ]; then
|
2003-01-29 18:10:14 -05:00
|
|
|
if [ X"${smbd_flags}" != X"NO" -a -x /usr/local/libexec/smbd ]; then
|
|
|
|
echo -n ' smbd'; /usr/local/libexec/smbd ${smbd_flags}
|
1998-08-11 09:32:35 -04:00
|
|
|
fi
|
2003-01-29 18:10:14 -05:00
|
|
|
if [ X"${nmbd_flags}" != X"NO" -a -x /usr/local/libexec/nmbd ]; then
|
|
|
|
echo -n ' nmbd'; /usr/local/libexec/nmbd ${nmbd_flags}
|
1998-08-11 09:32:35 -04:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
...
|
|
|
|
echo '.'
|
1998-05-04 00:10:39 -04:00
|
|
|
|
1999-03-19 04:06:04 -05:00
|
|
|
Steps 4 and 5 are only necessary if you want to enable swat (Samba
|
2003-01-29 18:10:14 -05:00
|
|
|
Web Administration Tool). Please note that administering 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.
|
1999-03-19 04:06:04 -05:00
|
|
|
|
2005-04-03 07:20:37 -04:00
|
|
|
4. add the following entry to ${SYSCONDIR}/inetd.conf:
|
1999-03-19 04:06:04 -05:00
|
|
|
|
|
|
|
...
|
2001-05-15 20:59:47 -04:00
|
|
|
swat stream tcp nowait.400 root /usr/local/libexec/swat swat
|
1999-03-19 04:06:04 -05:00
|
|
|
...
|
|
|
|
|
2005-04-03 07:20:37 -04:00
|
|
|
5. add the following entry to ${SYSCONDIR}/services:
|
1999-03-19 04:06:04 -05:00
|
|
|
|
|
|
|
...
|
|
|
|
swat 901/tcp # samba admin service
|
|
|
|
...
|
|
|
|
|
2005-04-03 07:20:37 -04:00
|
|
|
Install the samba-docs package and see documentation files in
|
|
|
|
/usr/local/share/doc/samba and example config files in
|
|
|
|
/usr/local/share/examples/samba for more information.
|
1999-03-19 04:06:04 -05:00
|
|
|
|
|
|
|
|