Is it a bug of Pam or what ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm recently faced very strange problem on PAM service on RHEL 4. I had to to allow user1 user2 and user3 to login only between 9 AM to 17 PM everyday. To do this I did the following:

1) vi /etc/security/time.conf

login;*;user1|user2| user3;Al0900-1700

2) vi /etc/pam.d/login
account required pam_time.so

This setting prevented user1 user2 and user3 to login to the system other than 9AM to 17 PM. But the strange thing happened is All the users with the name matching "user{1,2,3}" for example user10, user15, user19, user100, user110, user20, user200, user30, user300 are also denied to login other than 9AM to 17Pm.

What is wrong here and how to solve this.


Why /etc/nologin also prevents the root user to login. I think this has to deny only non-root user. please help me to sort it out.

Thank you for your help.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux