Solved

AIX/Linux : User never to expire

Posted on 2013-12-04
3
4,563 Views
Last Modified: 2013-12-04
How to set a AIX & Linux user "oracle" password never to expire, What kind of setting I need to check to see this and what should I change. Please help
0
Comment
Question by:aanya247
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 39696310
AIX

show:

lsuser -a expires oracle

"0" means "never expire"

set:

chuser expires=0 oracle

Linux

show:

chage -l oracle

look for "Password Expires:"

set:

chage -I -1 -M 9999 -E -1 oracle
0
 
LVL 25

Assisted Solution

by:madunix
madunix earned 250 total points
ID: 39696314
By default passwords do not expire on user accounts. If an expiration date has been added to an account and wish to remove it use either the passwd or chage commands to change the maximum number of days between password changes to -1.

http://www.thegeekstuff.com/2009/04/chage-linux-password-expiration-and-aging/#more-459
https://access.redhat.com/site/articles/9507


# chage -l tommy
Minimum: 0
Maximum: 30
Warning: 7
Inactive: -1
Last Change: Nov 19, 2007
Password Expires: Dec 19, 2007
Password Inactive: Never
Account Expires: Never

# passwd -x -1 tommy
   -OR-
# chage -M -1 tommy

# chage -l tommy
Minimum: 0
Maximum: -1
Warning: 7
Inactive: -1
Last Change: Nov 19, 2007
Password Expires: Never
Password Inactive: Never
Account Expires: Never
0
 

Author Comment

by:aanya247
ID: 39696342
Thanks, I have another question on the same grounds, I will open another question
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question