Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NIS Setup - Solaris 2.1

0 views
Skip to first unread message

Bill Heiser

unread,
Apr 29, 1993, 12:42:45 PM4/29/93
to
This seems like such a *simple* thing, we must be doing something
stupid wrong. We have an IPX running 2.1 in a YP domain running
SunOS 4.1.2. The machine was running without YP up until now.
We set the domainname (created /etc/defaultdomain) and 'ypinit -c'.
YP seems to start (ypbind starts, and indicates it is bound to
the 4.1 server). If I 'ypmatch username passwd', it returns
the expected entry.

BUT: if I try to "cd ~username" (in csh), or "su username", or
antyhing else that requires the yp password username to be
resolved, I'm told "no such user" exists.

What are we doing wrong?

Thanks in advance,
Bill

--
Bill Heiser Business: hei...@TDWR.ED.RAY.COM
Unix Workstation System Manager Personal: hei...@world.std.com

Bob Dowling

unread,
Apr 30, 1993, 6:43:26 AM4/30/93
to
In article <1993Apr29.1...@ferrari.nmc.ed.ray.com>, hei...@TDWR.ED.RAY.COM (Bill Heiser) writes:
|> If I 'ypmatch username passwd', it returns
|> the expected entry.
|>
|> BUT: if I try to "cd ~username" (in csh), or "su username", or
|> antyhing else that requires the yp password username to be
|> resolved, I'm told "no such user" exists.

Have you changed your /etc/nsswitch.conf file to use YP?

Vipin Samar

unread,
Apr 30, 1993, 12:29:57 PM4/30/93
to
hei...@TDWR.ED.RAY.COM (Bill Heiser) writes:

>This seems like such a *simple* thing, we must be doing something
>stupid wrong. We have an IPX running 2.1 in a YP domain running
>SunOS 4.1.2. The machine was running without YP up until now.
>We set the domainname (created /etc/defaultdomain) and 'ypinit -c'.
>YP seems to start (ypbind starts, and indicates it is bound to
>the 4.1 server). If I 'ypmatch username passwd', it returns
>the expected entry.

>BUT: if I try to "cd ~username" (in csh), or "su username", or
>antyhing else that requires the yp password username to be
>resolved, I'm told "no such user" exists.

>What are we doing wrong?

Looks like you forgot to change the /etc/nsswitch.file so as
to use NIS instead of "files". Or you can just copy the
/etc/nsswitch.nis to /etc/nsswitch.conf. If your automounter was already
running, you may want to kill and restart it after making this
change.

--
These opinions are mine and only mine.
Vipin Samar (vi...@Eng.sun.com)

0 new messages