niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » *nix » Linux » networking
NIS Client 's /etc/passwd
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
bnswami@gmail.com
*nix forums beginner


Joined: 11 Jul 2006
Posts: 1

PostPosted: Tue Jul 11, 2006 3:35 pm    Post subject: NIS Client 's /etc/passwd Reply with quote

Hi ,
I've set up an NIS Server on a Linux machine (Red hat) and verified
according to the Linux
NIS How -to : http://www.tldp.org/HOWTO/NIS-HOWTO/index.html

I try to login to the client with my NIS username but I get "unknown
user"
a look at the system log /var/log/messages gives me "unknown user". I
checked up some
FAQs but not able to find an answer.

I guess I am missign something basic to do with the local /etc/passwd
file.
Can someone throw some light?
Thanks in advance!!
Back to top
left_coast
*nix forums addict


Joined: 23 May 2006
Posts: 62

PostPosted: Tue Jul 11, 2006 3:38 pm    Post subject: Re: NIS Client 's /etc/passwd Reply with quote

bnswami@gmail.com wrote:

Quote:
Hi ,
I've set up an NIS Server on a Linux machine (Red hat) and verified
according to the Linux
NIS How -to : http://www.tldp.org/HOWTO/NIS-HOWTO/index.html

I try to login to the client with my NIS username but I get "unknown
user"
a look at the system log /var/log/messages gives me "unknown user". I
checked up some
FAQs but not able to find an answer.

I guess I am missign something basic to do with the local /etc/passwd
file.
Can someone throw some light?
Thanks in advance!!

Check your /etc/nsswitch.conf file.

--

Dan C. Gets caught apparently Plagiarizing:
Message ID: <3ab7l3-tnl.ln1@alta.sierrandays.org>
Yeah, this is the type critical of me!
Back to top
christian.charette@gmail.
*nix forums beginner


Joined: 15 Jun 2006
Posts: 5

PostPosted: Thu Jul 13, 2006 2:51 pm    Post subject: Re: NIS Client 's /etc/passwd Reply with quote

1) Make sure your nsswitch.conf has the following lines:

passwd: files nis
shadow: files nis
group: files nis

or

passwd: compat
group: compat

Otherwise, the OS is just looking it up on local files.

2) Make sure you have nscd installed. Made that mistake recently.
rpm -qa | grep nscd

3) Make sure you can bind correctly -- ypmatch -k <username> passwd
should return you your entry. May need to be root to do this.






bnswami@gmail.com wrote:
Quote:
Hi ,
I've set up an NIS Server on a Linux machine (Red hat) and verified
according to the Linux
NIS How -to : http://www.tldp.org/HOWTO/NIS-HOWTO/index.html

I try to login to the client with my NIS username but I get "unknown
user"
a look at the system log /var/log/messages gives me "unknown user". I
checked up some
FAQs but not able to find an answer.

I guess I am missign something basic to do with the local /etc/passwd
file.
Can someone throw some light?
Thanks in advance!!
Back to top
Ian Northeast
*nix forums addict


Joined: 23 Mar 2005
Posts: 62

PostPosted: Thu Jul 13, 2006 6:53 pm    Post subject: Re: NIS Client 's /etc/passwd Reply with quote

On Thu, 13 Jul 2006 07:51:51 -0700, christian.charette wrote:

(please don't top post. It makes it very hard to reply and makes threads
hard to follow)

Quote:
bnswami@gmail.com wrote:
Hi ,
I've set up an NIS Server on a Linux machine (Red hat) and verified
according to the Linux
NIS How -to : http://www.tldp.org/HOWTO/NIS-HOWTO/index.html

I try to login to the client with my NIS username but I get "unknown
user"

1) Make sure your nsswitch.conf has the following lines:

passwd: files nis
shadow: files nis
group: files nis

preferably.

Quote:
or

passwd: compat
group: compat

In which case you have to insert the BSD style "separators" into the
passwd and group files.

Quote:
Otherwise, the OS is just looking it up on local files.

2) Make sure you have nscd installed. Made that mistake recently. rpm
-qa
| grep nscd

Why? Nscd and NIS interact very badly. You make a change to a map and nscd
has cached the old value and it doesn't take effect. IME it is not a good
idea to run it in a NIS environment (or indeed at all unless you have some
serious performance problems with your name services). I do not have nscd
installed on this (Debian) NIS client.

Quote:
3) Make sure you can bind correctly -- ypmatch -k <username> passwd
should return you your entry. May need to be root to do this.

You don't need to be root.

Regards, Ian
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Thu Sep 09, 2010 11:41 am | All times are GMT
navigation Forum index » *nix » Linux » networking
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix SMTP client issues damber Postfix 1 Sat Apr 19, 2008 11:33 am
No new posts Problem while accessing 64 bit Server thru 32 bit client Ganesh Server 0 Fri Jul 21, 2006 1:40 pm
No new posts Anti-uce client checks Ian Andrews Postfix 2 Fri Jul 21, 2006 3:22 am
No new posts Unable to grant replication slave/client to class c Michael M. MySQL 0 Thu Jul 20, 2006 10:59 pm
No new posts I need to configure DHCP server to force client to obtain... malazc@gmail.com networking 1 Thu Jul 20, 2006 8:44 pm

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Sponsors: Cheap Home Insurance | Breast Enlargement | Debt Management | DVD rental | Debt Help
Privacy Policy
[ Time: 0.1021s ][ Queries: 17 (0.0714s) ][ GZIP on - Debug on ]