LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-16-2010, 04:26 PM   #1
pbwalker
LQ Newbie
 
Registered: Oct 2010
Distribution: Mac OS X
Posts: 5

Rep: Reputation: 0
pam_time


Hello,

I'm trying to grasp pam_time.

I understand the time.conf file, the syntax, and how it works. Where my confusion lies is here:

Where do you reference pam_time.so? e.g., I know you can't put it in system-auth...so where does "account required pam_time.so" get placed? In /etc/pam.d/login?
 
Old 10-16-2010, 08:36 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
What Linux distro / version?

Per pam_time(8), only the account modules is provided - as you noted. I've not used it, but isn't it trivial enough to test your hypothesis (on a test system)?

Last edited by anomie; 10-16-2010 at 08:39 PM.
 
Old 10-16-2010, 11:25 PM   #3
pbwalker
LQ Newbie
 
Registered: Oct 2010
Distribution: Mac OS X
Posts: 5

Original Poster
Rep: Reputation: 0
sorry 'bout that. RHEL 5.

I've been doing some testing, but wanted to get a better understanding on whether or not what I was doing was right, or a fluke.
 
Old 10-17-2010, 03:26 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
[ I need to fire up CentOS5 in a VM to tinker around for questions like this... ]

TBH, system-auth seems like exactly the right place for this. What bad (?) behavior were you seeing when you tried it there?
 
Old 10-18-2010, 10:20 AM   #5
pbwalker
LQ Newbie
 
Registered: Oct 2010
Distribution: Mac OS X
Posts: 5

Original Poster
Rep: Reputation: 0
The file was being regenerated when system-config-authentication was run.

I've found out that, indeed, system-auth is the place to put it. But when authconfig or system-config-authentication is run, the changes are gone.

I'll just be sure to setup NIS and/or LDAP (with sys-config-auth) *before* I mess around with PAM.
 
Old 10-20-2010, 10:31 AM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
You can take this advice or leave it (it's mainly just a reflection of my own philosophy when it comes to dealing with RHEL's system-config-* utilities): once you have system-auth configured exactly the way you need it, you might want to:
Code:
# chattr +i /etc/pam.d/system-config
When a utility tries to overwrite it later, it won't be able to.

Last edited by anomie; 10-20-2010 at 10:32 AM.
 
  


Reply



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
PAM problem with module pam_time.so giacomolg Linux - Security 1 11-27-2004 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:38 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
Open Source Consulting | Domain Registration