openbsd-ports/net/samba/pkg/MESSAGE-main
ajacoutot 186fa1fd56 - don't use $SYSCONFDIR for base system files (which are always
installed under /etc, whatever $SYSCONFDIR value is)
- s/PREFIX/LOCALBASE and the opposite where it makes sense
- README.OpenBSD is part of samba-docs, so no need to tell the user to
install samba-docs

ok mbalmer@ who gave me ten bonus points for solving the samba puzzle!
2008-08-30 17:02:26 +00:00

26 lines
860 B
Plaintext

To start the Samba server and naming service enter the following commands:
$ sudo ${PREFIX}/libexec/smbd # Start the Samba server component
$ sudo ${PREFIX}/libexec/nmbd # Start the Samba naming service
The configuration file, found at ${CONFDIR}/smb.conf can be used right
away for simple configurations. Local users must be added to the Samba user
database using the smbpasswd utility in order to use the Samba server.
$ sudo smbpasswd -a <username>
To have Samba start whenever the machine boots, add the following lines to the
/etc/rc.local script:
if [ -x ${PREFIX}/libexec/smbd ]; then
echo -n ' smbd'
${PREFIX}/libexec/smbd
fi
if [ -x ${PREFIX}/libexec/nmbd ]; then
echo -n ' nmbd'
${PREFIX}/libexec/nmbd
fi
For more information and complete documentation, install the samba-docs package
and check the ${LOCALBASE}/share/doc/samba directory.