Fedora Linux Support Community & Resources Center

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

Forgot Password? Join Us!

Guides & Solutions (Not For 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.

Thread Tools Search this Thread Display Modes
Old 17th May 2010, 10:12 AM
Robert2 Offline
Registered User
Join Date: Apr 2009
Posts: 138
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;


Reply With Quote
Old 16th October 2010, 03:24 AM
twidlerjohn Offline
Registered User
Join Date: Apr 2008
Posts: 26
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.

Reply With Quote

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: 20:30 (Tuesday, 25-04-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

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