Attached is the log.
e1011605 is the first user. e1011961 is the second user.
mumux131 @ /users/e1011605
[12]e1011605: ssh e1011961@mumux131
Last login: Thu Jan 7 10:37:59 2010 from mumux131
You have accessed a private network. Any unauthorized entry into or use of
this system is unlawful and may result in civil and/or criminal penalties.
All system activity is logged and becomes the property of the system owner.
mumux131 @ /users/e1011961
[9]e1011961: exit
Connection to mumux131 closed.
mumux131 @ /users/e1011605
[13]e1011605: su - e1011961
Password:
su: Sorry
mumux131 @ /users/e1011605
[14]e1011605: mumux131 @ /users/e1011605
[14]e1011605:
I think u have interpreted me wrong.
My requirement is that when first user "su" to second user,it should not prompt for password.
I have copied the public key of first user into the authorized_keys file of second user and when i "ssh" from 1st user to 2nd user,password is not prompted.
Bur when i "su" to second user from 1st user,password is being prompted.
If you wan't passwordless login between users on the same host, just have these user's keys being added to each other ~/.ssh/authorized_keys file (I understand you already did that) and run "ssh otheruser@localhost" instead of "su otheruser" to switch accounts