Tag Info

Hot answers tagged

3

The answer for this is pam_time[1] [1]: http://www.linux-pam.org/Linux-PAM-html/sag-pam_time.html "pam_time". As always, be careful editing pam and back up your config.


2

The homedir should be created in the path for the homedir specified in the users entry in /etc/passwd (or other similar account sources like an LDAP directory). Did you try to change that? This entry is the authoritative declaration of where the users homedir is (and should be created).


1

Here's an idea: In sshd_config add the following line: AllowUsers USER1 USER3 USER3 USER4 This list should be all users you want to be allowed to ssh to the system. After the list is present restart the sshd service. Then add the following lines to roots crontab: 0 17 * * * /usr/bin/sed -i 's/^AllowUsers.*$/AllowUsers USER1 USER2/' && ...


1

If you look at the files in directory /etc/pam.d/ you'll (almost certainly) find one or more of them that refer to pam_pwdfile. The following command will show you which ones ... grep pam_pwdfile /etc/pam.d/* From this you should be able to work out (from the file name) which bit of of the system is trying to use pam_pwdfile for authentication.



Only top voted, non community-wiki answers of a minimum length are eligible