Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ypserv problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JHuizingh
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2002
Posts: 100

PostPosted: Wed Nov 13, 2002 1:27 am    Post subject: ypserv problems Reply with quote

I am trying to get an NIS server up and running, but I'm having problems getting the NIS server program to work. This is what happens:

Code:
bash-2.05a# /etc/init.d/ypserv start
 * WARNING:  "ypserv" has already been started.


I do a
Code:
 ps -auxww|grep yp

but it doesn't return anything, so I don't think it's actually running.

I try this too, but it doesn't work:
Code:
bash-2.05a# /etc/init.d/ypserv stop
 * Stopping NIS Server...                                                 [ !! ]

bash-2.05a# /etc/init.d/ypserv start
 * WARNING:  "ypserv" has already been started.


What can I do to get this thing working?
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Nov 13, 2002 1:00 pm    Post subject: Reply with quote

Code:
bash-2.05a# /etc/init.d/ypserv zap


will manually reset the init script to a stopped state.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
burzmali
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 238
Location: ca

PostPosted: Thu Nov 14, 2002 12:30 am    Post subject: Reply with quote

i am trying to use nis also and am having trouble with yppasswed on the client machine. it gives me this error when i try to use it:
test@mail / $ yppasswd
yppasswd: yppasswdd not running on NIS master host ("server.burzmali.net").

i have yp-tools installed on the master. have anyone gotten this to work?
_________________
burzmali
www.burzmali.net
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Thu Nov 14, 2002 12:33 am    Post subject: Reply with quote

On the server, if you run:
Code:
ps ax | grep yp


What do you see? If you don't see rpc.yppasswd somewhere in the list, then it's not running on the server...

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
JHuizingh
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2002
Posts: 100

PostPosted: Thu Nov 14, 2002 2:37 am    Post subject: Reply with quote

The zap command worked. Thanks klieber
Back to top
View user's profile Send private message
burzmali
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 238
Location: ca

PostPosted: Thu Nov 14, 2002 8:07 pm    Post subject: Reply with quote

ok, it is not running, so how do i get it running? there is no init script for it and just typing yppasswd on the server gets me:
server root # yppasswd
yppasswd: can't find the master ypserver: Can't bind to server which serves this domain
server root #

any suggestions?

**EDIT**
ok, i guess you run rpc.yppasswd and that starts the service, but why isn't it included in an NIS init script? also when i tried to test it with an account on from the client it asks me to enter old passwd then says 'sorry' and exits. eh? i tried more then once and i know i supplied the correct old passwd. thanks for any help.
_________________
burzmali
www.burzmali.net
Back to top
View user's profile Send private message
JHuizingh
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2002
Posts: 100

PostPosted: Wed Nov 20, 2002 12:57 am    Post subject: Reply with quote

Ok,

/etc/init.d/ypserv zap

got it to reset, and it looks like the server starts up fine when I give it the start argument. Unfortunately if I try to stop it, it has [!!] after I give that command instead of [OK]. It won't start again after I do that either.

Also, when I start it right after zapping it and then try and point an nis client to it, it will not find the server. I've tried it both from the local box that the server is on, and another machine on the lan. What is wrong with the server?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum