securitybreach Posted November 11, 2014 Share Posted November 11, 2014 In Unix/Linux distributions, the command ‘usermod‘ is used to modify or change any attributes of a already created user account via command line. The command ‘usermod‘ is similar to that ‘useradd‘ or ‘adduser‘ but the login granted to an existing user. The command ‘useradd‘ or ‘adduser‘ is used for creating user accounts in Linux systems. To know more about on how to create system users, read our complete guide at: After creating user accounts, in some scenarios where we need to change the attributes of an existing user such as, change user’s home directory, login name, login shell, password expiry date, etc, where in such case ‘usermod’ command is used. When we execute ‘usermod‘ command in terminal, the following files are used and affected. /etc/passwd – User account information. /etc/shadow – Secure account information. /etc/group – Group account information. /etc/gshadow – Secure group account information. /etc/login.defs – Shadow password suite configuration.. Basic syntax of command is: usermod [options] username ...................... http://www.tecmint.c...mmand-examples/ 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.