vishal srivastava
2001-Oct-19  23:12 UTC
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@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
Barry, Christopher
2001-Oct-21  08:49 UTC
Samba installation - "execvp - permission denied" problem - Plz help
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@hotmail.com]
Sent: Friday, October 19, 2001 11:09 PM
To: samba@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@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
Tom Diehl
2001-Oct-21  09:47 UTC
Samba installation - "execvp - permission denied" problem - Plz help
On Sun, 21 Oct 2001, Barry, Christopher wrote:> 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.I would suggest you do not use it then. Redhat and other distributions are doing the right thing (tm) by complying with the fhs. Do you not think standards are a good thing? -- ......Tom Dysfunction The Only Consistent Feature of All tdiehl@rogueind.com of Your Dissatisfying Relationships is You.
Apparently Analagous Threads
- RedHat sshd.init script typo ?
- [libnbd PATCH v3 07/19] socket activation: replace execvp() call with fork-safe variant
- execvp /usr/local/libexec/dovecot/dovecot-lda: Permission denied
- startup script for icecast
- [libnbd PATCH v4 0/2] lib/utils: introduce async-signal-safe execvpe()