LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2007, 06:10 PM   #1
haiders
Member
 
Registered: Sep 2006
Posts: 62

Rep: Reputation: 15
NIS client reading local passwd


Hi all,
I have a solaris 9 server running as a NIS server. I have multiple servers that are running ypbind and I am able to run ypwhich, yppasswd, ypcat on them and log in successfully. I have one server that seems to be configured just as the others (redhat WS3 (I know old)however when I log in it still uses the local passwd file. Here is my nsswitch.conf file:

Code:
# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

#passwd:     files nis
#shadow:     files nis
#group:      files nis
#hosts:     db files nisplus nis dns
hosts:      files nis dns 

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files nis
rpc:        files
services:   files nis

netgroup:   files nis

publickey:  nisplus

automount:  files nis
aliases:    files nisplus

passwd:     nis files 
shadow:     nis files
group:      nis files
I know its messy, but I guess the only important things that are of concern to me are passd, shadow and group files to me.


Why would it be reading the local file? I verified it is using the local file because if I comment out a user account from the local passwd, that user is unable to log in, even though you can see that he/she exists in yppasswd. Any help is appreciated.

Thanks in advance.
 
Old 10-02-2007, 01:24 PM   #2
kmellzey
LQ Newbie
 
Registered: Jan 2007
Distribution: Fedora5 & 6, Red Hat WS4
Posts: 4

Rep: Reputation: 0
Hi,

In your nsswitch.conf file, you must have an entry for passwd. In the example file you gave, there is no entry for passwd. I have a bunch of RH boxes as clients of a Solaris NIS server and here's how my nsswitch.conf file is set up:

passwd: compat
group: compat

This seems to work for me.
 
Old 10-02-2007, 03:18 PM   #3
haiders
Member
 
Registered: Sep 2006
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks for the reply.
I do have a entry for passwd and group (check the very bottom). I don't have it set to 'compat' however-I've specified 'nis' then 'files'. Should that matter? I can try setting it to compat and restart NIS, I'll post the outcome.
 
Old 10-04-2007, 12:39 PM   #4
haiders
Member
 
Registered: Sep 2006
Posts: 62

Original Poster
Rep: Reputation: 15
I tried the changes and it doesn't work. This server that I'm converting in to a nis client now used to be a NIS server for another network. Is there any special steps I need to take for this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't change NIs passwd at client end wanch Linux - Networking 3 04-30-2010 05:57 AM
Reading barcode data from local COM port using PuTTY telnet client jskalsi Linux - General 2 04-19-2006 05:22 AM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Security 2 03-31-2004 01:43 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Networking 1 03-31-2004 08:51 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Linux - General 1 03-31-2004 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration