Skip to content

Check that a user's home directory is present on the system.

License

Notifications You must be signed in to change notification settings

MarkCotch/pam_checkhomedir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pam_checkhomedir Copyright (c) 2018 Mark Coccimiglio [email protected]

NOTE: This package currently works but is considered BETA.

The design of this PAM Module is to test for the presence of the user's home directory. If the Home Directory is not found we return a non-PAM_SUCCESS return code. Basically the module pulls the proper $HOME from getpwnam(user) and does a "Blind Open" ( opendir( struct_getpwdnam->pw_dir ) ). We DO NOT first test to see if the directory exists. This is deliberate. If the user's home directory is auto-mounted (e.g. autofs) then it will not show if we try to pre-test for its existence. We want the underlying file system/mounts to intercept the open request, block, and mount the home directory before releasing the I/O blocking.

Security NOTE: We currently do NOT test ownership or permissions at this time. Depending on how you configure PAM the user's home directory may mount regardless if the users credential are valid. YMMV.

Dependcies: pam Build Dependcies: pam-devel (el) or libpam0g-dev (deb)

About

Check that a user's home directory is present on the system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published