Samba installation - "execvp - permission denied" problem - Plz help

vishal srivastava planetjeans at
Fri Oct 19 23:12:01 GMT 2001

Hi there,
   I have installed samba-2.2.2 on Redhat linux 7.0 . I have setup the whole 
server properly and have run the ./configure, make and make install commands 
successfully. I have even written a basic smb.conf file which is located in 
/etc/samba . The testparm on the conf file shows no errors. i have checked 
the /etc/services file for the netbios services and they are all done 

But when I try to start the smbd server I get the following error. Please 
tell me where I am wrong.

[root at redhat lock]# /etc/rc.d/init.d/smb restart
Restarting SMB services: Shutting down SMB services:       [FAILED]
Starting SMB services: execvp: Permission denied
execvp: Permission denied                                  [FAILED]

>>>Here is my smb.conf file
           workgroup = MYGROUP

              guest ok = no
              read only = no

>>>Here is my script file located in /etc/rc.d/init.d/
# 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/samba/smb.conf ] || exit 0

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

Get your FREE download of MSN Explorer at

More information about the samba mailing list