Pages

Monday, March 23, 2015

RHEL v7: Create user chage


Create two users: john with uid/gid equal to 2000, password 12345678 and davis with uid/gid equal to 3000, password 87654321. Make davis‘ account validity stopping in one month.

# useradd -u 2000 -p password john
# date -d “+1month”
# usermod -e YYYY-MM-DD john
 or # chage -E YYYY-MM-DD john
# chage -l john

No comments:

Post a Comment