Bug 6385 - PAM_mkhomedir does not work with SSHD
: PAM_mkhomedir does not work with SSHD
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/openssh)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2005-04-02 23:13 by
Modified: 2005-06-09 17:52 (History)


Attachments
Patch to openssh-3.6.1p2-alt6 for solving problem. (1.86 KB, patch)
2005-04-02 23:16, Boldin Pavel
no flags Details | Diff
spec file to using patch (22.55 KB, patch)
2005-04-02 23:19, Boldin Pavel
no flags Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-04-02 23:13:32
When I try to set creation of home dirs with session handler pam_mkhomedir and
login with sshd - no home dir creation is done, but sshd is drop session...

(it's used with pam_ldap authentication)

problem is that sshd setuid() before it calls session section of pam.
Steps to Reproduce:
1.add pam_mkhomedir to /etc/pam.d/sshd
2.restart sshd
3.try to login with username home direcotry of whome is does not exists
Actual Results:  
session is dropped

Expected Results:  
you a login, home directory is created.
------- Comment #1 From 2005-04-02 23:16:34 -------
Created an attachment (id=789) [details]
Patch to openssh-3.6.1p2-alt6 for solving problem.
------- Comment #2 From 2005-04-02 23:19:07 -------
Created an attachment (id=790) [details]
spec file to using patch
------- Comment #3 From 2005-04-02 23:22:13 -------
Fixed with previous attachments.

I hope it is working and secure.
------- Comment #4 From 2005-06-09 17:41:38 -------
Серж, Женя: к нашему вопросу о pam_limits (на повышение лимитов) это имеет
отношение?
------- Comment #5 From 2005-06-09 17:52:59 -------
Ага, и повешеннfz мной под именем Сержа бага на pam #6989 тоже имеет :)