Restrict Users to Use Old Passwords This is very useful if you want to disallow users to use same old passwords. The old password file is located at /etc/security/opasswd. This can be achieved by using PAM module. [root@localhost ~]# cat /etc/pam.d/system-auth #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next … Continue reading RESTRICT USERS TO USE OLD PASSWORDS
Category: User and Group Administration
user&group administration
User and Group Administration To add a new user account, you can run either of the following two commands as root. adduser tom useradd jerry [root@machine1 ~]# cat /etc/passwd | grep tom tom:x:501:501::/home/tom:/bin/bash [root@machine1 ~]# cat /etc/passwd | grep jerry jerry:x:502:502::/home/jerry:/bin/bash ----------------------------------------------------------------------------------------------------------------------- View a List of All Groups To view all the groups on the … Continue reading user&group administration