Re: YP/NIS timeout.

2003-01-03 Thread lewiz
On Wed, Jan 01, 2003 at 08:29:58PM -0600, Dan Nelson wrote:
 In the last episode (Jan 01), lewiz said:
  At the login: prompt I enter my username (lewiz), hit return and get
  nothing for a while until:
  
  yp_order: clnt_call: RPC: Timed out
 Hit ^T during the pause and find out what program is hanging.  You
 probably have a command in your shell's startup script that is trying
 to resolve an NIS username.

^T shows:
load: 1.28  cmd: login 45573 [nanslp] 0.00u 0.04s 0% 1016k

I couldn't find anything about nanslp (locate shows nothing but I
eventually tracked it down to sys/kern/kern_time.c, where it shows up:

sys/kern/kern_time.c:   error = tsleep(nanowait, PWAIT |
PCATCH, nanslp,

Hence, it has something to do with the nanosleep(2) syscall.  Other than
this, I don't know what it's doing.  Maybe you are correct that the
shell is trying to do some stuff but I could find nothing like this in
/etc/profile, /etc/csh.cshrc, /etc/csh.login or any of the user's
personal copies.

-lewiz.

-- 
If only one could get that wonderful feeling of accomplishment without
having to accomplish anything.

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg14154/pgp0.pgp
Description: PGP signature


Re: YP/NIS timeout.

2003-01-01 Thread lewiz
On Sun, Dec 29, 2002 at 08:25:20PM -0600, Dan Nelson wrote:
 In the last episode (Dec 29), lewiz said:
I'm wondering if there is any way to stop my system completely
  falling over when my YP/NIS server is no longer available?  I am
  unable to login, even with my root account.  I have a local user that
  I would like to use (when the YP/NIS server is unavailable) but this
  seems impossible.  Any ideas on this matter?
 
 Make sure the local user is above the + in your passwd file and you
 should be okay.  Define unable to login.  Do you simply get login
 incorrect for all attempts, or are you able to log in but something
 else happens?

At the login: prompt I enter my username (lewiz), hit return and get
nothing for a while until:

yp_order: clnt_call: RPC: Timed out

This message gets repeated a few times but I can do pretty much nothing
with my machine.

  Even as I log in as a local user (say root) I get past entering my
password, at which point I get the same message.  I can't understand why
this happens.
  Update here: I've just sat and watched it a bit longer.  I only get
one repetition of this message with root, after which it allows me to
login as per usual.  Still, this seems odd because root has nothing to
do with the YP/NIS configuration, does it?

 You might want to consider setting up a couple NIS slave servers if
 your master is unreliable.

I agree :)  I'm trying to do this with a laptop though.  I want it so if
I disconnect from my network that I can just log in as an alternate user
(in my case I have lewiz2 setup, which is essentially a local mirror of
the YP/NIS user lewiz).  This way I can use a synchronization tool
(unison and rsync) to ensure both accounts are up-to-date when I return.

  Many thanks for your reply.  Happy New Year,

-lewiz.

-- 
As far as we know, our computer has never had an undetected error.
-- Weisert

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13918/pgp0.pgp
Description: PGP signature


Re: YP/NIS timeout.

2003-01-01 Thread Dan Nelson
In the last episode (Jan 01), lewiz said:
 At the login: prompt I enter my username (lewiz), hit return and get
 nothing for a while until:
 
 yp_order: clnt_call: RPC: Timed out
 
 This message gets repeated a few times but I can do pretty much
 nothing with my machine.
 
   Even as I log in as a local user (say root) I get past entering my
 password, at which point I get the same message.  I can't understand
 why this happens.
   Update here: I've just sat and watched it a bit longer.  I only get
 one repetition of this message with root, after which it allows me to
 login as per usual.  Still, this seems odd because root has nothing
 to do with the YP/NIS configuration, does it?

Hit ^T during the pause and find out what program is hanging.  You
probably have a command in your shell's startup script that is trying
to resolve an NIS username.
 
-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



YP/NIS timeout.

2002-12-29 Thread lewiz
Hi,

  I'm wondering if there is any way to stop my system completely falling
over when my YP/NIS server is no longer available?  I am unable to
login, even with my root account.  I have a local user that I would like
to use (when the YP/NIS server is unavailable) but this seems
impossible.  Any ideas on this matter?

-lewiz.

-- 
The reason we come up with new versions is not to fix bugs.  It's
absolutely not.
-- Bill Gates

--|| url: http://lewiz.info/ | http://www.westwood.karoo.net/pgpkey ||--



msg13625/pgp0.pgp
Description: PGP signature


Re: YP/NIS timeout.

2002-12-29 Thread Dan Nelson
In the last episode (Dec 29), lewiz said:
   I'm wondering if there is any way to stop my system completely
 falling over when my YP/NIS server is no longer available?  I am
 unable to login, even with my root account.  I have a local user that
 I would like to use (when the YP/NIS server is unavailable) but this
 seems impossible.  Any ideas on this matter?

Make sure the local user is above the + in your passwd file and you
should be okay.  Define unable to login.  Do you simply get login
incorrect for all attempts, or are you able to log in but something
else happens?

You might want to consider setting up a couple NIS slave servers if
your master is unreliable.

-- 
Dan Nelson
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message