Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2002 04:37:04 -0800
From:      Mahlon <mahlon-dated-1015504625.83922a@martini.nu>
To:        Thomas Fiebig <tfie@lrs.e-technik.uni-erlangen.de>
Cc:        questions@FreeBSD.org
Subject:   Re: Using NIS only, if on network?
Message-ID:  <20020302043704.B77232@martini.nu>
In-Reply-To: <3C7DE194.E56971C5@lrs.e-technik.uni-erlangen.de>; from "tfie@lrs.e-technik.uni-erlangen.de" on Thu, Feb 28, 2002 at 08:51:48AM
References:  <3C7DE194.E56971C5@lrs.e-technik.uni-erlangen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
> my question relates to the NIS part. I have a notebook, which is sometimes
> included in my network, sometimes not (this is, why I use a thing like a
> notebook). Now some problems during the booting process occur, if I have
> installed the NIS things in master.passwd and groups and the notebook is not in
> the network. This seams clear because it doesn't find the NIS information.
> 
> Can I do something like a depending booting? Network YES => use NIS, Network NO
> => do not use NIS


Don't use the 'normal' NIS variables in rc.conf.  Roll your own
script that checks ifconfig output for 'status: active' on your
main network interface.

If it finds it, it fires up ypbind.  If not, exit.
Drop it into the rc.d dir, away you go.

Of course, this also assumes you have a local user to login as that doesn't
require your NIS server... otherwise you'll only be able to login as root.


-Mahlon


Mahlon E. Smith                          jabber id: mahlon@chat.martini.nu
http://www.martini.nu/                 get pgp key:  mahlon-pgp@martini.nu
..........................................................................
   In rivo fimi sine rivo sum. Latin for : 'I'm up the creek without a
                                 paddle.'

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020302043704.B77232>