Operating System - HP-UX
1833518 Members
3212 Online
110061 Solutions
New Discussion

new user only can login with su

 
piyut_2
Frequent Advisor

new user only can login with su

dears,

i already created new user, but this user can not login to my system.this user can login with "su" command from another user.
whats wrong with this user ?

regards,

piyut
7 REPLIES 7
Muthukumar_5
Honored Contributor

Re: new user only can login with su

what is happening when you try to login with that user?

What is the entry in /etc/passwd fro newuser?

Is there anything in /etc/profile or /.profile in new user home directory?

hth.
Easy to suggest when don't know about the problem!
piyut_2
Frequent Advisor

Re: new user only can login with su

sir,

I just tried to login with new user via telnet and success.but this new user can not login via
ssh protocol.
Muthukumar_5
Honored Contributor

Re: new user only can login with su

Can you try as,

ssh -vvv newusername@hostname

what you are getting there.

what you are getting from /etc/passwd for newuser?

grep 'newusername' /etc/passwd

hth.
Easy to suggest when don't know about the problem!
Henk Geurts
Esteemed Contributor

Re: new user only can login with su

what's the primairy group of the newuser?
In /etc/opt/ssh/sshd_config we use the line
AllowGroups
to allow users on their primairy group.
make sure the primairy group of the newuser is in there...

hope this helps
DCE
Honored Contributor

Re: new user only can login with su

have you tried

ssh -l login_name system_name

to ssh use the correct user name?

Dave
piyut_2
Frequent Advisor

Re: new user only can login with su

all,

many thanks for your reply.
I just already solved this problem by myself. but i don't know why it's happened. when i restart ssh daemon, new user can login to my system.:)
anyone know why ??
piyut_2
Frequent Advisor

Re: new user only can login with su

dears,

something nasty with my system. I just tried to create new user again with user id test. this user can't login via ssh.

# ssh test@localhost
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
f3:bf:7f:ea:bb:62:51:93:c3:1b:28:f5:af:f6:f8:ef.
Please contact your system administrator.
Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending key in /.ssh/known_hosts:5
RSA host key for localhost has changed and you have requested strict checking.
Host key verification failed.
#