LinuxQuestions.org
Visit Jeremy's Blog.
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 01-21-2010, 03:58 AM   #16
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Original Poster
Rep: Reputation: 21

i have changed as you told, tinkster...but still i could log into the machine via GUI.....
 
Old 09-02-2010, 05:03 PM   #17
AbsolutJav
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
Hi, there I'm new here and I have the same problem, but I finally make it work.

If you are working with gnome you have to add in "/etc/pam.d/gdm" the line "account required pam_time.so"

And them the restrictions on "/etc/security/time.conf".

And that's it.

Cheers!
 
Old 09-02-2010, 08:10 PM   #18
suthagarka
LQ Newbie
 
Registered: Jul 2010
Location: London
Distribution: Cent OS, RH, Ubuntu
Posts: 7

Rep: Reputation: 0
Hi Kingston,

This very interesting. You might have already done this, if not please place account required pam_time.so as the first line of /etc/pam.d/login.

The next thing to notice is your login logs. If you check /var/log/secure after a test login and log-off, you will see an entry such as pam_unix(sshd:session)... or pam_unix(gdm:session)... based on your login method.

If you see these add an additional line to/etc/pam.d/sshd session required pam_time.so. Now do the same to /etc/pam.d/gdm if you need to restric GUI access.

Unfortunately this is the drawback of PAM's modular approach.

Thank You
 
  


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
using pam to override file access restrictions gearoid_murphy Linux - General 7 08-26-2009 04:43 AM
Get pam time restrictions working for linux samba domain login. v2ueha6 Linux - Newbie 1 12-20-2008 04:40 AM
Time restrictions on Linux. cayuga Linux - Software 1 11-11-2007 06:28 PM
Time Restrictions on IPCop depam Linux - Software 2 08-16-2006 10:28 PM
Time Restrictions - porttime - logoutd gdw Slackware 1 02-25-2003 02:23 AM


All times are GMT -5. The time now is 12:30 PM.

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