标签:
1. 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.
http://www.certdepot.net/rhel7-rhcsa-sample-exam-1/
Reference answer:
# useradd -u 2000 john
# echo 12345678 | passwd --stdin john
or
# passwd john
New password: 12345678
# useradd -u 3000 davis
# echo 87654321 | passwd --stdin davis
# date -d "+1 month"
# chage -E YYYY-mm-dd davis
or
# usermod -e YYYY-mm-dd davis
# chage -l davis //show account aging information
2. ……
标签:
原文地址:http://www.cnblogs.com/emmagikyo/p/4326182.html