Tag: passwd

Migrate User Accounts from one CentOS server to another CentOS server

There are many articles that suggest that simply copying certain files from one CentOS to another CentOS server will be sufficient enough to migrate the user accounts along with their permissions and passwords.  Other arguments suggest that certain files such as the passwd and shadow files should never be manually edited; but the caveat is that there is no "utility"...Read More »

CentOS Linux and passwords

User creation and password changes can be handled as one-liners for as long as you use the correct commands.  Today I learned of another password utility other than passwd.  It is chpasswd, a powerful tool to change passwords without the prompt and the password can be encrypted. To create a user may be a two step process. First create the...Read More »

Check if user account is locked in Linux

If you ever needed to know if an account is locked in CentOS Linux, there are a few commands to find those answers. Lock a password using passwd. Additional confirmation that the password is locked.  The double !! indicates that the password is locked.  Note that this user does not have a password. Unlock the password.  Note that the password did...Read More »