Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Login time restriction
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Wed Dec 11, 2013 8:25 pm    Post subject: Login time restriction Reply with quote

By editing /etc/security/time.conf I should restrict user login/whatever only for times I want. However, this never works here. Maybe I do something wrong, maybe I need anything more?

the line is:
Code:
*;*;xxx;Al1000-2100


That means user xxx can do anything on my system only from 10:00 to 21:00 every day....if I understand right. However I can login as xxx before and after this time restrict.
What is wrong here?
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Sat Dec 14, 2013 11:14 am    Post subject: Reply with quote

I see no one use this :(
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42592
Location: 56N 3W

PostPosted: Sat Dec 14, 2013 12:49 pm    Post subject: Reply with quote

LukynZ,

man time.conf:

       services;ttys;users;times
...
       The first field, the services field, is a logic list of PAM service
       names that the rule applies to.


You need to be using pam for authentication, so services needs to be whatever the pam login service is called.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LukynZ
Apprentice
Apprentice


Joined: 19 Dec 2008
Posts: 230
Location: The Czech Republic

PostPosted: Thu Dec 19, 2013 12:20 pm    Post subject: Reply with quote

yes, but * means all services
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1733
Location: St. Wendel

PostPosted: Thu Dec 19, 2013 12:49 pm    Post subject: Reply with quote

But you need to activate the pam_time modul in your PAM Service Files, it is not in there by default.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum