Page MenuHomeVyOS Platform

create home directories via PAM on the fly
Closed, ResolvedPublic

Description

We need to handle home dir creation for newly created users,
this must be done on the fly on the first login

Propose to do so via PAM module
https://linux.die.net/man/8/pam_mkhomedir

Details

Difficulty level
Easy (less than an hour)
Why the issue appeared?
Implementation mistake

Event Timeline

Can You please elaborate on this, or create an example?

For users not added manually (e.g. via Radius or later TACACS+)
wee need to create home directories on the fly

To implement remote auth sources we will need to deal with logins
it seems that we need to handle home folder creation for users that doesn´t exist in config
it´s kind of similar how active directory integration work on linux, where home folder for Active Directory user will be created on first login
Only difference that we not limited to AD and will need same for radius/tacacs+/ad
this will allow us start implement remote auth mechanisms