On Wed, 11 Oct 2000, Alister Waller wrote:

> I am trying to start samba up when the server boots.
> I put
> /usr/sbin/smbd -D
> /usr/sbin/nmbd -D
> in /etc/rc.d/init.d/network
> This does not seem to do it though. Users cannot access the share although I
> could as adm
I suspect you have got it in the wrong part of the network startup
script.  I have attached the standard startup script that comes with
several distributions.  Put it in /etc/rc.d/init.d and then run (as root):
chkconfig smb on
(it lives in /sbin if your path is not finding it).
This should fix your problem.

tom.
Consultant

AUSSEC    Phone: 61 4 1768 2202
339 Blaxland Rd., Ryde NSW 2112
Email: [EMAIL PROTECTED]
#!/bin/sh
#
# chkconfig: 345 91 35
# description: Starts and stops the Samba smbd and nmbd daemons \
#              used to provide SMB network services.

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# Check that smb.conf exists.
[ -f /etc/smb.conf ] || exit 0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting SMB services: "
        daemon smbd -D  
        daemon nmbd -D 
        echo
        touch /var/lock/subsys/smb
        ;;
  stop)
        echo -n "Shutting down SMB services: "
        killproc smbd
        killproc nmbd
        rm -f /var/lock/subsys/smb
        echo ""
        ;;
  status)
        status smbd
        status nmbd
        ;;
  restart)
        echo -n "Restarting SMB services: "
        $0 stop
        $0 start
        echo "done."
        ;;
  *)
        echo "Usage: smb {start|stop|restart|status}"
        exit 1
esac

Reply via email to