Link to home
Start Free TrialLog in
Avatar of traderhank1
traderhank1

asked on

User account creation

How would I create a user from the command line with a password that will never expire?
Avatar of Member_2_1239314
Member_2_1239314

Type the following at command prompt to see the details of the command for adding users:
# man useradd
Avatar of traderhank1

ASKER

that wasn't "exactly" helpfull.
Hello,

You can set the password aging limits  by editing /etc/login.defs

You can set the perons's expiry to the maximum with

# passwd -x <username>

Thanks
Stephen
By default,
useradd <username>
passwdd <username>
as root, the password of <username> won't expire unless you enforce on pam.d or /etc/login.defs.
I don't see anything relating to expiration in login.defs , I don't know anything about pam.d
everytime I create a new user I have to fire-up X and uncheck enable password expiration.
ASKER CERTIFIED SOLUTION
Avatar of steveb3210
steveb3210

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial