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

Barry, Christopher cbarry at
Sun Oct 21 08:49:02 GMT 2001

smb.conf will reside in /usr/local/samba/lib if you install from
sources. Also, make sure you clean up any RedHat prior installation
stuff. Create symlinks in the (I think) /usr/local/bin that point to the
new binaries in /usr/local/samba/bin. Run testparm to see if everything
is cool.

RedHat feels the need to change file locations from what other unixes
use. - it really is most annoying.


-----Original Message-----
From: vishal srivastava [mailto:planetjeans at]
Sent: Friday, October 19, 2001 11:09 PM
To: samba at
Subject: Samba installation - "execvp - permission denied" problem - Plz

Hi there,
   I have installed samba-2.2.2 on Redhat linux 7.0 . I have setup the
server properly and have run the ./configure, make and make install
successfully. I have even written a basic smb.conf file which is located
/etc/samba . The testparm on the conf file shows no errors. i have
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.
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

To unsubscribe from this list go to the following URL and read the

More information about the samba mailing list