Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-21-2010, 02:58 AM   #16
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215

Original Poster
Blog Entries: 1

Rep: Reputation: 21

i have changed as you told, tinkster...but still i could log into the machine via GUI.....
Old 09-02-2010, 04:03 PM   #17
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"

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

And that's it.

Old 09-02-2010, 07:10 PM   #18
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 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 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


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 03:43 AM
Get pam time restrictions working for linux samba domain login. v2ueha6 Linux - Newbie 1 12-20-2008 03:40 AM
Time restrictions on Linux. cayuga Linux - Software 1 11-11-2007 05:28 PM
Time Restrictions on IPCop depam Linux - Software 2 08-16-2006 09:28 PM
Time Restrictions - porttime - logoutd gdw Slackware 1 02-25-2003 01:23 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 AM.

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