Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th May 2010, 10:12 AM
Robert2 Offline
Registered User
 
Join Date: Apr 2009
Posts: 138
linuxfedorafirefox
Using pam_time.so to restrict times a user can login

While the blog posting (#1) by Scott Kindley on how to setup pam_time.so is a good read, I found that on recent Fedora versions (F13 tested), it was restricting text mode login, but not login from GDM.

After some debugging, and tries, I figured out the solution. Instead of editing /etc/pam.d/gdm you need to edit /etc/pam.d/gdm-password (and possibly other /etc/pam.d/gdm-* files that may apply to your environment) and add the line "account required pam_time.so" there instead

And then you need to make a minor adjustment to /etc/security/time.conf, so that instead of using simply 'gdm' as the service name, you should use 'gdm*', so the example line should read instead;

login|gdm*;*;jordan;Al0800-1800

#1)
http://skindley.wordpress.com/2006/1...ogins-by-time/
Reply With Quote
  #2  
Old 16th October 2010, 03:24 AM
twidlerjohn Offline
Registered User
 
Join Date: Apr 2008
Posts: 21
linuxfedorafirefox
Re: Using pam_time.so to restrict times a user can login

Thanks a million, Robert! This is valuable information.

I've been fidgeting with pam_time which stopped working after an update on Fedora11 and never could get it work again until I saw your post. I wish such changes are announced more prominently.

john
Reply With Quote
Reply

Tags
login, pamtimeso, restrict, times, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict User Access To Directory Schmitt Using Fedora 3 24th September 2008 06:57 PM
Restrict user commands in the Shell(bash) macm Using Fedora 3 15th January 2008 09:21 PM
Restrict login by NIS users phongthai Security and Privacy 2 14th May 2007 07:32 PM
Restrict a User from running a command akt Using Fedora 3 29th September 2006 11:53 AM


Current GMT-time: 23:52 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Loveland - Lexington Photos - Coria del Rio