Linux Systems-User management-common commands

Source: Internet
Author: User

Linux Systems-User management-common commandsa user1 Useradd user name [-parameters] .2 passwd Change Password3 Usermod Modify user information [-G add user to user Group] [-l Disable user][-u Restore user]
Two user groups1 groupadd group name [-parameter] add user group2 Groupdel Delete a user group3 groupmod Setup Information
three users and user groups1 Add user to user group: gpasswd-a user Group User2 User Group Delete User: gpasswd-d user3 Set User group Administrator: gpasswd-a user4 Delete user group password: passwd-r user group5 prohibit users from converting to this group: Passwd-r users6 Disable and restore: Disable passwd-i username Recovery passwd-u Username
Four user management commands1 Pwck Detect/etc/passwd file (other remote cannot access the file during detection, lock file)2 VIPW editor/etc/passwd Wenjian3 ID View the user's ID and group information4 Finger View user's details5 su Switch user to root6 passwd-s View the user's password status7 who, W view current logged on user's information
Five user group management commands1 Groups View users belong to those groups2 newgroup Switch User group3 GRPCK to detect user group configuration files4 CHGRP Modify the owning group of a file5 VIGR Edit/etc/group file (lock file)6 Chage Setting the configuration of the password (learn about it)
7 Enable or disable the shadow feature:User: Enabled: Pwconv, disabled: Pwunconvuser group: Grpconv, disable: Grpunconv8 User's system configuration: Sysyem-config-users
9 sudo usage: Use sudo to temporarily become the root user instead of temporarily having root partial permissions, configuration files:/etc/sudowes (Linux system configuration files are stored in/etc), edit the configuration file Visudoformat User name host address = command (absolute path)
six more commands need to be practiced with man or--help .
seven MY_QQ 872785786 and Linux system basis corresponding network disk data link: Http://pan.baidu.com/s/1ydewA Password: Kaek
Welcome to Exchange Learning-Android embedded development, if you want to get more information for free, please contact me-sharing spirit, provide 1000g+ technical information
iOS, Android, embedded, and various programming languages

Linux Systems-User management-common commands

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.