I started thinking about when home directories are set manually with -d, and how the patch wouldn't addresses those use cases after I sent in the patch earlier, which had me thinking that using dirname to set it on a user by user basis would be the best approach. So yes, I agree that using dirname and setting it to $BASE_HOME is the best approach.
FWIW, and I'm sure you know this, $USER_HOME is retrieved with getent passwd and not directly from /etc/passwd. This will cover local and users retrieved from an external sources should the system be using pam_mkhomedir to create local home directories for those network users.
Hi Tyler,
I started thinking about when home directories are set manually with -d, and how the patch wouldn't addresses those use cases after I sent in the patch earlier, which had me thinking that using dirname to set it on a user by user basis would be the best approach. So yes, I agree that using dirname and setting it to $BASE_HOME is the best approach.
FWIW, and I'm sure you know this, $USER_HOME is retrieved with getent passwd and not directly from /etc/passwd. This will cover local and users retrieved from an external sources should the system be using pam_mkhomedir to create local home directories for those network users.
Thanks!
--
Darin