Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-22-2002, 12:04 PM   #1
Registered: Aug 2002
Location: Atlanta
Distribution: Redhat Linux 7.2 & 7.3 + 8.0
Posts: 59

Rep: Reputation: 15
Starting YP Map server: execvp: no such file or directory

Hello people,

Successfully installed NIS on RedHat 7.2 but can't seem to get it to build the maps on the Slave server. Everytime I try to run

/usr/lib/yp/ypinit -s master from the slave server

I get this error:

Transfering netid.byname ...etc
trying ypxfrd .....not running.

When i try to start the ypxfrd daemon, I get an error:

Starting YP map server: execvp: no such file or directory FAILED

I know the slave server is working at least as a client because i can run yptools such as yppasswd and get the user info on the master server.

Any out there experienced this of or have a solution to this?
Done some searches on google but nothing concrete.

Thanks for your promt responses.

Desperate Admin.
Old 09-22-2002, 02:29 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
No solution, but here's how I would TS it... Check /etc/rc.dinit.d/<service> and check if it uses a /etc/sysconfig/<service options> file, check if the options are correct in both files, and if the files/services (etc) are accessable by the user it's running as. If all fails start the script manually as (w/o quotes) "sh -x /etc/rc.dinit.d/<service> <command>". This will have sh start the script in debug mode showing all processing and any failures. Elif this fails you'll have to extract all the options necessary (preceding the start() command *and* from the options file, if any) and start it manually.
Old 07-30-2003, 04:42 PM   #3
LQ Newbie
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
I had the same problem using redhat, i just reinstalled ypserv on the master host and this fixed the problem. It was in need of upgrading anyway!! Make usre if you do this to make a copy of you yp makefile because it will be replaced with the new one on reinstall, then just replace the new one with your original and ypxfrd should work fine.
Old 10-07-2003, 09:27 PM   #4
LQ Newbie
Registered: Oct 2003
Distribution: redhat7.3, 8
Posts: 1

Rep: Reputation: 0
The problem stems from the fact that the binary called by the daemon() shell routine is not in your path.

The first thing most int.d scripts do in source /etc/init.d/functions which contains the daemon() routine. The offending lines in the script is:

# And start it up.
if [ -z "$user" ]; then
$nice initlog $INITLOG_ARGS -c "$*"
$nice initlog $INITLOG_ARGS -c "su -s /bin/bash - $user -c \"$*\""

"$*" is the name of the program execvp cannot find.

So, to find out the name of the missing binary, edit this file to echo the name of the binary, then add the path of the binary to your PATH. e.g.

export PATH=/some/binary:$PATH


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting Postfix: execvp: No such file or directory Mateo1041 Linux - Software 0 06-16-2005 10:03 AM
SYSERR(root): hash map "generics": missing map file /etc/mail/genericstable.db? singying304 Linux - Networking 4 02-28-2005 06:49 AM
execvp: No such file or Directory on bootup Tenover Linux - General 3 02-06-2004 05:25 PM
Starting httpd: execvp: No such file or directory jules_fraser Linux - Software 2 01-18-2004 08:43 AM
Starting httpd: execvp: No such file or directory jules_fraser Linux - Networking 6 01-18-2004 06:36 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration