Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-07-2005, 05:24 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Posts: 2
Rep:
|
how can I limit time access with pam
I want to limit access time for a user so it can't login between friday 19:00 to Monday 05:00
I tried to use the file /etc/security/time.conf but I don' know exactly how to configure it;
I tied this:
*;*;Mohamed;!Mo0000-0500&!Fr1900-2400&!SaSu0000-2400
His dosn't work exactly
so I tried this
*;*;Mohamed;!Mo0000-0500|!Fr1900-2400|!SaSu0000-2400
And I thik it dosn't work so
Kan you explain to me if we must use | (or) or & (and)
thaks
|
|
|
11-07-2005, 06:27 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
This web site seems to do a good job of explaining the syntax. Hope it helps.
|
|
|
11-10-2005, 12:40 PM
|
#4
|
LQ Newbie
Registered: Nov 2005
Posts: 2
Original Poster
Rep:
|
thanks for this link it's very good
but I don't know where is the problem :
if I write this
!Mo0000-0500&!Fr1900-2400
it works correctly (the user can't access on monday between 0000 and 0500 and have no access on friday between 1900 and 2400)
but if I add an other condition :
!Mo0000-0500&!Fr1900-2400&!SaSu0000-2400
it dosn't work
|
|
|
11-17-2005, 12:58 AM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
I don't know why more than two time ranges doesn't work. Perhaps you can split it into two entries. From that link:
Quote:
If there are entries that overlap, the least permissive (actually, the intersection of all entries) is used
|
|
|
|
All times are GMT -5. The time now is 10:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|