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.
crea el user john con UID/GID 2000, password 12345678
[root@localhost ~]# /sbin/useradd -u 2000 john
[root@localhost ~]# /bin/id john
uid=2000(john) gid=2000(john) groups=2000(john)
[root@localhost ~]# /bin/passwd john
Changing password for user john.
New password:
BAD PASSWORD: The password fails the dictionary check - it is too simplistic/systematic
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]#