Displaying 1 result from an estimated 1 matches for "pam_sm_cred".
Did you mean:
pam_setcred
2011 Feb 10
1
Behaviour of OpenSSH while login as root and non-root account
...;. I
made few changes in OpenSSh code so it can set terminal ID properly. These
changes were :
added do_pam_set_tty() in session_pty_req(Session *s) function in session.c
and added do_pam_set_tty() in mm_pty_allocate() function in monitor_wrap.c
It works fine for root and I get appropriate tty in pam_sm_cred() and
pam_sm_close_session() function.
But using same code, when I try to ssh through a non root account I am
getting tty in pam_sm_close_session() but not in pam_sm_cred(). I am not
sure why ssh is behaving differently for root and non-root accounts.
Is there anything which triggers SSH behavior...