LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2010, 09:20 AM   #1
shaps
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
denying login based on time


i want to deny certain users based on time to login to my machine i am using CentOs 5.0 any sugestions?
 
Old 05-01-2010, 09:40 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Use /etc/security/time.conf to make rules.

http://blogs.techrepublic.com.com/security/?p=319

For example :

Code:
login ; * ; !bobby ; MoTuWeThFr0800-2000
http ; * ; !bobby ; MoTuWeThFr0800-2000
means that all users except for bobby can login between 0800 and 2000.

The manpage is accurate -

http://manpages.ubuntu.com/manpages/...me.conf.5.html

Last edited by smoker; 05-01-2010 at 10:04 AM. Reason: got myself confused for a minute or two
 
Old 05-01-2010, 09:43 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

If I'm not mistaking, CentOS uses PAM and you should have a file called time.conf in /etc/security. Have a look at that file, it's pretty well documented if I remember well. Also you can have a look at this site which explains the basics of PAM.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding login time and idle time,..etc from a list of users knavramesh Linux - Newbie 2 10-02-2008 11:55 PM
VSFTPD refusing login/denying cause anon only gonus Linux - Networking 3 10-09-2005 09:22 PM
Linux based gateway for time-based wireless service. TotalDefiance Linux - Software 0 10-03-2005 07:06 PM
Allowing/Denying login by group twsnnva Linux - Security 2 03-22-2005 04:14 PM
Denying remote root login with SuSE 7.1 midnightcommander Linux - Networking 2 07-08-2001 07:51 PM


All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration