[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Login takes more time (LDAP)



On 04/10/11 02:55 -0000, vijay s sheelavantar wrote:
Hi,I followed your suggestions, I have set 'UseDNS no' in sshd_config and restarted sshd.
I tried 'getent passwd' and 'getent group' there is no delay in the output of these commands.
I tried to create home directory after login using pam_mkhomedir.so but failed. 
I am getting delay only while login. I am getting below errors during login. Please see the below error and kindly help me to fix this delay problem.
Last login: Fri Sep 30 15:22:53 2011 from 10.254.194.148Could not chdir to home directory /home/kim: No such file or directoryid: cannot find name for user ID 105-bash-3.2$
Thanks and Regards,Vijay S.

Skip ssh altogether and try 'su -' with the user, such as:

su - kim

So it sounds like '/home/kim' doesn't exist. Is that correct? Is the delay
because the home directory doesn't exist? Does the problem go away if you
manually create it?

Or is the delay because of:

'cannot find name for user ID 105'

which indicates the user does not have permissions to resolve uids on your
system, in which case you might want to look at using a name caching
daemon, or rework your permissions.

--
Dan White