LinuxQuestions.org
Visit Jeremy's Blog.
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 02-05-2014, 12:46 PM   #1
CJWillman
LQ Newbie
 
Registered: Feb 2014
Posts: 2

Rep: Reputation: Disabled
PAM password aging controls for individual accounts in RHEL 6.x


I am using PAM on Redhat Enterprise Linux 6.4. Everything is configured and operating correctly for password aging, length, complexity, etc. but I have recently run into a situation where a number of service accounts are required to keep their password. We have increased the minimum password length to address our policy requirements to allow this, however, I am trying to just shut off the aging requirement for these accounts. I would like to know if there is a way to control password aging differently for specific users or groups. Anyone have any ideas on how to do this or if it is even possible?

Thanks for your time,
Chris
 
Old 02-05-2014, 01:52 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Have a look at the "chage" command.

From man page on RHEL6:
Quote:
-E, --expiredate EXPIRE_DATE
Set the date or number of days since January 1, 1970 on which the
userīs account will no longer be accessible. The date may also be
expressed in the format YYYY-MM-DD (or the format more commonly
used in your area). A user whose account is locked must contact the
system administrator before being able to use the system again.

Passing the number -1 as the EXPIRE_DATE will remove an account
expiration date.
 
Old 02-05-2014, 02:34 PM   #3
CJWillman
LQ Newbie
 
Registered: Feb 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks

Thanks for the help. I was thinking with tunnel vision and really only looking within PAM. I tried the chage -E but that made the account itself not expire. Instead I used chage -M 99999 <username> and I think that will do what I need.

Chris
 
  


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
How to set password policy for specific user or group in RHEL using PAM configuration dewesh Linux - Security 2 12-11-2013 05:11 AM
Password Aging Ratclaws Linux - Security 2 09-15-2006 05:27 AM
password aging tariq_ned General 1 06-21-2006 10:23 AM
Password aging help szahri Linux - Newbie 5 03-23-2005 08:02 PM
How do you implement password aging in samba? colpaarm Linux - Software 1 07-30-2003 10:37 AM

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

All times are GMT -5. The time now is 06:19 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