Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Aug 2005 20:03:01 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Jeremy Utley <lfsjeremy@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NIS problems on FreeBSD 5.4
Message-ID:  <20050809010301.GA37912@dan.emsphone.com>
In-Reply-To: <3aaec88405080816514a40f327@mail.gmail.com>
References:  <3aaec88405080816514a40f327@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 08), Jeremy Utley said:
> I'm trying to use FreeBSD 5.4 as an NIS client, and am encountering
> problems.  I've followed the instructions given in the FreeBSD docs
> (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nis.html)
> successfully, but the system does not recognize my NIS users.
> 
> Running ypcat passwd shows expected output:
> 
> freebsd5# ypcat passwd
> Administrator:omitted:0:0::/root:/bin/bash
> jeremy:omitted:500:100::/home/jeremy:/bin/bash
> test:omitted:501:100::/home/test:/bin/bash

You might want to change these passwords now that everyone knows the
hash :)
 
> However, when I try to login as any of these 3 users, it rejects the
> login - even using the "id" command fails:
> 
> freebsd5# id jeremy
> id: jeremy: no such user

You need either a plus line in your master.passwd file (best way to add
it is to use the vipw command):

	+:::::::::

Or you need this in /etc/nsswitch.conf:

	passwd: files nis


-- 
	Dan Nelson
	dnelson@allantgroup.com



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