Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-22-2002, 12:04 PM
|
#1
|
Member
Registered: Aug 2002
Location: Atlanta
Distribution: Redhat Linux 7.2 & 7.3 + 8.0
Posts: 59
Rep:
|
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.
|
|
|
09-22-2002, 02:29 PM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
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.
|
|
|
07-30-2003, 04:42 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Posts: 1
Rep:
|
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.
|
|
|
10-07-2003, 09:27 PM
|
#4
|
LQ Newbie
Registered: Oct 2003
Distribution: redhat7.3, 8
Posts: 1
Rep:
|
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 "$*"
else
$nice initlog $INITLOG_ARGS -c "su -s /bin/bash - $user -c \"$*\""
fi
"$*" 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
|
|
|
All times are GMT -5. The time now is 05:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|