NIS + SSH problem still here
Rick Stevens
rstevens at vitalstream.com
Thu Mar 25 18:50:06 UTC 2004
Roberto F. Brandao wrote:
> Hello,
>
> I've set "UseLogin yes" and now I can open ssh connections, but I
> can't log in yet. It doesn't recognizes the user:
>
> id: cannot find name for user ID
> [I have no name!@node2]
>
> Can you, please, help me on this ?
Does the NIS server know about these users? If so, there are several
routes you can take. First, check to see if you have an
/etc/nsswitch.conf file.
1. If /etc/nsswitch.conf does NOT exist or if it contains this line:
passwd: compat
then you should make sure the last line of the /etc/passwd file contains
a single "+". That tells the system that, if the user isn't found in
/etc/passwd, try the NIS system.
2. If /etc/nsswitch.conf contains a line:
passwd: files nis
(there may be stuff inside "[]" which you can ignore for this bit) then
you should be fine as it stands. The system first checks /etc/passwd,
then NIS if the user isn't found.
I HIGHLY recommend you go and get the O'Reilly "sloth" book, "Managing
NFS and NIS" by Hal Stern if you're going to be playing with NIS a lot.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- Whoever said "Money can't buy friends" obviously never brought -
- donuts to the office. -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list