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

Barry, Christopher cbarry at infiniconsys.com
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.

-C

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


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 
properly

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]
                                                           [FAILED]
done.
--------------------------------------------------------------------


>>>Here is my smb.conf file
-----------------------------
[global]
           workgroup = MYGROUP

           [homes]
              guest ok = no
              read only = no
---------------------------

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

# See how we were called.
case "$1" in
  start)
        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
        echo
        touch /var/lock/subsys/smb
        ;;
  stop)
        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)
        status /usr/local/bin/samba-2.2.2/source/smbd
        status /usr/local/bin/samba-2.2.2/source/nmbd
        ;;
  restart)
        echo -n "Restarting SMB services: "
        $0 stop
        $0 start
        echo "done."
        ;;
  *)
        echo "Usage: smb {start|stop|restart|status}"
        exit 1
esac


_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list