Solved

AIX/Linux : User never to expire

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Install Dell OpenManage on Ubuntu PowerEdge R410 3 41
Using SSH Through A Bastion Host Transparently (Is the topic) 1 43
CentOS 7 Installation 7 58
aix unix tar error 3 42
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…
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é.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

912 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

19 Experts available now in Live!

Get 1:1 Help Now