Which command is used to list and modify password expiration information for user accounts? The chage command is used to modify user password expiry information. It enables you to view user account aging information, change the number of days between password changes and the date of the last password change.
Which command is used to create a new account on Unix system? In Linux, a ‘useradd‘ command is a low-level utility that is used for adding/creating user accounts in Linux and other Unix-like operating systems.
What command can be used to change password of current user? The passwd command sets and changes passwords for users. Use this command to change your own password or another user’s password. You can also use the passwd command to change the full name (gecos) associated with your login name and the shell you use as an interface to the operating system.
How do I add a new user in Linux?
- Log in as root.
- Use the command useradd “name of the user” (for example, useradd roman)
- Use su plus the name of the user you just added to log on.
- “Exit” will log you out.