Linux User management and sudo introduction

Source: Internet
Author: User

User introduction in 1.Linux

The user is the identity of the system consumer
The user is stored in the system as a number of channeling characters + several system configuration files
User information involves the system configuration file:
/ETC/PASSWD User Information

650) this.width=650; "title=" \ "screenshot" src= "%5c" alt= "Wkiom1lt_aeqo8vmaaabds7hbzs154.png-wh_50"/>
User: Password: uid:gid: Description: Home directory: User-used Shell

0 1-999 1000-60000

User information changes
Usermod parameter User

Change the name
Add Group
Modify comments
Modify Home Directory
Modify <span style= "" Font-family: ">shell

650) this.width=650; "title=" \ "screenshot" src= "%5c" alt= "wkiom1lufwlywy-taaduyr77ebi905.png-wh_50"/> Usermod-l U
Passwd-l freezing degree, add two! -U level High

<span style= "" Font-family: ">

3. User decentralization

In the system, Superuser can delegate actions that ordinary users cannot perform to ordinary users.
Delegated Authority Profile:/etc/sudoers

Ways of decentralizing power
Super User execution Visudo enter edit/etc/sudoers mode

Get Permissions User Host name = (acquired user identity) command
Test localhost= (Root)/usr/sbin/useradd
Test user can execute/usr/sbin/useradd as superuser in localhost

Execute delegation of authority command
sudo command to enter the current user password if sudo is executed for the first time
In/etc/sudoers if the settings are as follows:
Test localhost= (Root) nopasswd:/usr/sbin/useradd
Indicates that the user does not need their own password when invoking the sudo command

650) this.width=650; "title=" \ "screenshot" src= "%5c" alt= "Wkiol1luffcrtefeaaculogccsu696.png-wh_50"/>

Introduction to User management and sudo for Linux

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: 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.