[linux-nisplus Digest, Vol 14, Issue 1]

Gene Loriot gene.loriot at usa.net
Sat Feb 28 04:40:34 GMT 2004


I have not been sucessful with NISplus and Linux AT ALL, but have been
using NISplus on Sun SPARC Solaris since 1991...back then it was one
butt ugly child!!!!

However, I looked on my Solaris9 box and the order that these services
are stared are:

rpc
autofs
nscd

Since it all works when you REstart it, maybe something is out of order,
or taking longer to stabilize when the next, dependent serivce is 
started.

Does your system have an /etc/.rootkey?  The only other think I can
think of is that to properly bind services like your login, the root
process from boot MUST have credentials to sucessfully query the NISplus
name space.  By logging in as root, you may have at that time gotten
you NISplus credentials.  You can see this with the nisdefaults command.
Maybe you could interject the nisdefaults command just prior to where
nscd and/or autofs are started and see what it says.

In Sun Solaris, the nisclient -co -d <domainname> <short_name> will
recreate credentials.  It spews a line you simply (and a nisping org_dir)
cut and paste into the [offending] client and reboot.  Besides creating
the /etc/.rootkey, it will snag a new /var/nis/NIS_COLD_START file
and slide /etc/nsswitch.nisplus over to /etc/nsswitch.conf.

Just an asside, be sure that your nsswitch.conf has no logic in it.  The
default has the [NOTFOUND=RETURN] which fulfills "Loriot's Law of Good
Software":   "...All Good Software has STUPID defaults..."

Probably more than you wanted.  Let me know if you want to chat more.

I would love to know how you got it to work in linux at all!

Gene
linux-nisplus-request at lists.samba.org wrote:

> Send linux-nisplus mailing list submissions to
> 	linux-nisplus at lists.samba.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.samba.org/mailman/listinfo/linux-nisplus
> or, via email, send a message with subject or body 'help' to
> 	linux-nisplus-request at lists.samba.org
> 
> You can reach the person managing the list at
> 	linux-nisplus-owner at lists.samba.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of linux-nisplus digest..."
> 
> 
> Today's Topics:
> 
>    1. NIS+ Redhat login (Ivan Valtchanov)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 26 Feb 2004 11:12:27 +0000
> From: Ivan Valtchanov <star at imperial.ac.uk>
> Subject: NIS+ Redhat login
> To: linux-nisplus at lists.samba.org.
> Message-ID: <403DD49B.6040308 at imperial.ac.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi,
> 
> I have constantly problems with logins in Linux Redhat 9/Fedora Core. 
> Everything works relatively good after I  manually restart 
> /etc/init.d/nscd and then /etc/init.d/autofs. Yes, nscd, nisplus, autofs 
> are in my services for levels 345 -
> chkconfig --level 345 nscd on etc...
> 
> This is really annoying that every time a machine is rebooted I must 
> login root and restart these serveces by hand.
> 
> Any ideas? Solutions? Suggestions?
> 
> Thanks in advance.
> 
> Cheers,
>     Ivan
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> linux-nisplus mailing list
> linux-nisplus at lists.samba.org
> http://lists.samba.org/mailman/listinfo/linux-nisplus
> 
> 
> End of linux-nisplus Digest, Vol 14, Issue 1
> ********************************************
> 



Gene Loriot, CSA/SCNA	
"...on a clear disk you can seek forever..."
Farm Side Systems




More information about the linux-nisplus mailing list