Re: NIS problems on FreeBSD 5.4

2005-08-09 Thread Dan Nelson
In the last episode (Aug 09), Jeremy Utley said:
> On 8/8/05, Dan Nelson <[EMAIL PROTECTED]> wrote:
> > 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.
> > 
> > You need either a plus line in your master.passwd file (best way to add
> > it is to use the vipw command):
> > 
> > +:
> 
> This part has already been done - it was part of the docs I followed
> from the FreeBSD site.
> 
> > Or you need this in /etc/nsswitch.conf:
> > 
> > passwd: files nis
> 
> Haven't done this...the passwd section of my current nsswitch.conf is:
> 
> passwd: compat
> passwd_compat: nis
> 
> Adding this to nsswitch.conf seems to have resolved the problem -
> perhaps doing so should be added to the docs.

Only one is necessary.  You can remove the plus line from master.passwd
if you're using the "passwd: files nis" line.  With "passwd: compat",
the NIS tables are consulted whenever there's a + or - line in
master.passwd and netgroups are used. With "passwd: files nis", nis is
checked if the user isn't in the local passwd file, and you can't use
netgroups.  Also remember to change the "group:" line in nsswitch.conf
to match, and remove the + line from /etc/groups.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NIS problems on FreeBSD 5.4

2005-08-09 Thread Jeremy Utley
On 8/8/05, Dan Nelson <[EMAIL PROTECTED]> wrote:
> 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 :)

No worries - this is a reserved network with no direct connectivity to
the net at large, otherwise I would have done so.  I suppose I should
also mention that the NIS master server is a W2K3 AD controller with
Services for Unix, but that doesn't seem to be involved, since a linux
system on the same NIS domain appears to work properly.

> 
> > 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):
> 
> +:

This part has already been done - it was part of the docs I followed
from the FreeBSD site.

> 
> Or you need this in /etc/nsswitch.conf:
> 
> passwd: files nis

Haven't done this...the passwd section of my current nsswitch.conf is:

passwd: compat
passwd_compat: nis

Adding this to nsswitch.conf seems to have resolved the problem -
perhaps doing so should be added to the docs.

Jeremy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NIS problems on FreeBSD 5.4

2005-08-08 Thread Dan Nelson
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
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


NIS problems on FreeBSD 5.4

2005-08-08 Thread Jeremy Utley
Greetings all!

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:Lav79IkYtvC3g:0:0::/root:/bin/bash
jeremy:iZ45wDaonJWpA:500:100::/home/jeremy:/bin/bash
test:vXiHWkO7dsBl.:501:100::/home/test:/bin/bash

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


Can anyone give me some insight on why this is happening.  A RedHat EL
4 installation connected to the same NIS domain works perfectly.

Thanks for any help you can provide!

Jeremy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NIS problems solved

2004-01-24 Thread Scott Mitchell
On Sat, Jan 24, 2004 at 04:07:51PM -0600, kitsune wrote:
> 
> Found my problem... a pwd_mkdb is required... but not mentioned in the
> hand book...

The handbook section dealing with setting up NIS clients tells you to use
'vipw' to edit master.passwd, which will make sure that a pwd_mkdb is done.

Scott

-- 
===
Scott Mitchell   | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England   | 0x54B171B9 |  don't get sucked into jet engines"
scott at fishballoon.org | 0xAA775B8B |  -- Anon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NIS problems solved

2004-01-24 Thread kitsune
On Sat, 24 Jan 2004 12:47:32 -0600
Vulpes Velox <[EMAIL PROTECTED]> wrote:

> I've recently set up a NIS server on my lan. All machines are
> running freebsd 4stable.
> 
> I have added the nisdomainname and nis_client_enable lines to the
> client machines along with the correct lines on the server in
> rc.conf.
> 
> I have also added +: to the end of /etc/master.passwd and
> +:*:: to the end of /etc/group.
> 
> Ypcat passwd all the correct usernames, but I can't login or su as
> any of them.
> 
> On the login if I try to login using one, I eventually get the
> message"login: Login timed out after 300 seconds" awhile after it
> kicks out"Login incorrect"
> 
> Any one have any idea what is going on?

Found my problem... a pwd_mkdb is required... but not mentioned in the
hand book...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


NIS problems

2004-01-24 Thread Vulpes Velox
I've recently set up a NIS server on my lan. All machines are running
freebsd 4stable.

I have added the nisdomainname and nis_client_enable lines to the
client machines along with the correct lines on the server in rc.conf.

I have also added +: to the end of /etc/master.passwd and
+:*:: to the end of /etc/group.

Ypcat passwd all the correct usernames, but I can't login or su as any
of them.

On the login if I try to login using one, I eventually get the message
"login: Login timed out after 300 seconds" awhile after it kicks out
"Login incorrect"

Any one have any idea what is going on?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"