Instructions for using User management commands in Linux

Source: Internet
Author: User
Keywords Linux User admin command
Tags account password create displays example group linux password root

1.groupadd

This command is used to create a new user group.

2. Groupmod

This command is used to modify the properties of a group.

3. Groups

This command displays the group that the current user is in.

4.passwd

The passwd (password) command allows the user to modify the password for the account. In general, there are several scenarios in which an account password failure can be set: the password is too simple, the password is too short, and the characters in the password are the same. For example:

[Root@teacher root]$ passwd

Changing password for user zjz.

Changing Password for ZJZ

(current) UNIX Password:

New Password:

Bad Password:it ' s WAY too Short

New Password:

Bad Password:is too simple

New Password:

Bad password:it does not contain enough different characters

Retype new Password:

Passwd:all authentication tokens updated successfully.

5.su

This command is very important to enable a general user to have Superuser or other user privileges, or to enable Superuser to do something as a general user. But the general http://www.aliyun.com/zixun/aggregation/6579.html "> user must have a superuser or other user's password when using this command. If you want to exit the current user's login, you can enter exit.

6.useradd

This command is the quickest and easiest way to create a user account.

7. Userdel

This command is used to delete user accounts and their associated files.

8. Who

This command lets you see which users are logged on to the current computer, for example:

[Root@teacher root]$ who

root:0 Jun23 08:22

Root pts/0 Jun23 08:53 (: 0.0)-show who, logged on

9.whoami

This command is used to view the current user's login name. For example:

[Root@teacher root]$ WhoAmI

Root

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.