Bug 6385 - PAM_mkhomedir does not work with SSHD
Summary: PAM_mkhomedir does not work with SSHD
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: openssh (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Gleb F-Malinovskiy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-02 23:13 MSD by Boldin Pavel
Modified: 2005-06-09 17:52 MSD (History)
6 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
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 тоже имеет :)