Specify commands for normal User Configuration

Source: Internet
Author: User

Allows Oldboy to use the Useradd command for ordinary users

Create a normal user Oldboy (slightly)

Visudo//Enter sudo configuration file under root user

: Set nu//input in command line mode: SETNU Display line number

Press 99gg to line 99th

Press I to enter edit mode

Oldboy all= (All)/usr/sbin/useradd//Add this content

Press ESC

: Wq//Save exit

Su-oldboy//Switch to Oldboy user

sudo useradd QQQ//create user QQQ

Then enter the Oldboy password

TAIL-1/etc/passwd//See if the creation was successful


This article is from the "11104762" blog, please be sure to keep this source http://11114762.blog.51cto.com/11104762/1826775

Specify commands for normal User Configuration

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.