Solved

AIX/Linux : User never to expire

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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 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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

760 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now