The usermod command or modify user is a command in Linux that is used to change the properties of a user in Linux through the command line. After creating a user we have to sometimes change their attributes like password or login directory etc. so in order to do that we use the usermod command. The information of a user is stored in the following files:
This will now change the login name of the user %u201Ctest_user%u201D.
6. To lock a user
This will lock the %u201Ctest_user%u201D account and will display a! sign in shadow file before the username
7. To unlock a user
Name | Views | Likes |
---|---|---|
Usermod command in Linux | 4553 | 1 |
SSH Command In Linux | 791 | 7 |
Introduction to Named Pipes | 1069 | 3 |
Linux KILL Command | 2794 | 5 |
Soft Link and Hard Link In Linux | 421 | 2 |
Vi Editor in Linux | 595 | 6 |
FDisk Command in Linux | 544 | 5 |
How to view the History in Linux | 450 | 2 |
Process Manipulation in Linux | 1623 | 4 |
Export command in Linux | 413 | 1 |
ID command in Linux | 413 | 1 |
Netstat Command in Linux | 628 | 3 |
Chmod Command in Linux | 437 | 1 |
Compressing Files in Linux | 355 | 1 |
Crontab in Linux | 477 | 1 |
File Manipulation in Linux | 617 | 5 |
Curl Command in Linux | 506 | 1 |
Env Command in Linux | 398 | 5 |
LSOF Command in Linux | 407 | 1 |
User Manual in Linux | 433 | 1 |
Whereis command in Linux | 440 | 1 |
4 Lesser Known Commands in Linux | 470 | 6 |
Shell Scripting in Linux | 633 | 4 |
Alias command in Linux | 373 | 1 |
How to Kill a Process using Command Line | 471 | 3 |
Comments