Bug 6385

Summary: PAM_mkhomedir does not work with SSHD
Product: Sisyphus Reporter: Boldin Pavel <davinchi>
Component: opensshAssignee: Gleb F-Malinovskiy <glebfm>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: eostapets, glebfm, ldv, mike, sr, vt
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
Patch to openssh-3.6.1p2-alt6 for solving problem.
none
spec file to using patch none

Description Boldin Pavel 2005-04-02 23:13:32 MSD
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 Boldin Pavel 2005-04-02 23:16:34 MSD
Created attachment 789 [details]
Patch to openssh-3.6.1p2-alt6 for solving problem.
Comment 2 Boldin Pavel 2005-04-02 23:19:07 MSD
Created attachment 790 [details]
spec file to using patch
Comment 3 Boldin Pavel 2005-04-02 23:22:13 MSD
Fixed with previous attachments.

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