NIS + SSH problem still here
Roberto F. Brandao
roberto at tdibrasil.com.br
Thu Mar 25 12:17:37 UTC 2004
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 ?
Thank you very much.
Roberto
On Tue, 2004-03-23 at 15:50, Rick Stevens wrote:
> Roberto F. Brandao wrote:
> > Hello,
> >
> > I am getting a serious problem with NIS and SSH in a pack of Red Hat 8
> > servers. When a common user (not root) tries to open a ssh connection to
> > another server, I get the message "Connection to node2 closed by remote
> > host".
> > /var/log/messages in NIS server shows:
> > ypserv[4683]:refused connect from 192.168.0.21:32776 to procedure
> > ypproc_all
> >
> > /var/log/secure in client shows:
> > sshd[2793]: Accepted password for test from 192.168.0.11 port 32797 ssh2
> > sshd[2795]: fatal: login_get_lastlog: cannot find account for uid xxx
> >
> > When using either ftp or telnet, it works fine. It also works fine for
> > root. I checked permissions for /etc/passwd: it is 644. There are no
> > blank lines neither in /etc/passwd nor /etc/shadow. /etc/hosts,
> > /etc/hosts.allow and /etc/hosts.deny looks fine.
> >
> > Can someone help me, please ?
>
> Check your /etc/ssh/sshd_config file and verify that you have "UseLogin
> yes" set. If you don't, then the login program is never invoked by sshd
> when a user logs in and consequently, their home environment isn't set
> up (the automounter won't mount their home directory).
>
> If you enable this, note that "X11Forwarding" will be disabled (login
> doesn't know how to handle the xauth cookies). Take a careful read of
> "man sshd_config" for further details.
> ----------------------------------------------------------------------
> - Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
> - VitalStream, Inc. http://www.vitalstream.com -
> - -
> - "Microsoft is a cross between The Borg and the Ferengi. -
> - Unfortunately they use Borg to do their marketing and Ferengi to -
> - do their programming." -- Simon Slavin -
> ----------------------------------------------------------------------
>
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list at redhat.com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request at redhat.com
> Subject: unsubscribe
--
Roberto F. Brandao <roberto at tdibrasil.com.br>
More information about the Redhat-install-list
mailing list