Solved

AIX/Linux : User never to expire

Posted on 2013-12-04
3
4,680 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

821 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