Learn Linux Create a user useradd command.

Source: Internet
Author: User

Linux Create User useradd command

Original address: Linux create user useradd command http://www.xfcodes.com/linuxcmd/user/24308.htm

One, the relationship between AddUser and Useradd command

Copy Codecode example: [[email protected] opt]# type AddUser
AddUser Is/usr/sbin/adduser
[Email protected] opt]# type Useradd
Useradd Is/usr/sbin/useradd
[email protected] opt]# which useradd
/usr/sbin/useradd
[email protected] opt]# which adduser
/usr/sbin/adduser
[Email protected] opt]# ls-l/usr/sbin/adduser/usr/sbin/useradd
lrwxrwxrwx. 1 root root 7 Jul 14:11/usr/sbin/adduser-Useradd
-rwxr-x---. 1 root root 97040 Feb 2011/usr/sbin/useradd

Ii. adding users using the Useradd command

[Email protected]/]# Useradd Zhink
[[email protected]/]# ID zhink
uid=501 (Zhink) gid=502 (zhink) groups=502 (Zhink)

Learn Linux Create a user useradd command.

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.