Solaris useradd user add

Source: Internet
Author: User

From: http://www.wangchao.net.cn/bbsdetail_536435.html

 

Add User Group
Add a user group using the groupadd command
Groupadd [-g gid] Group
Note:
G. Specify the ID of the group.
ID of the GID group (it cannot be the same as the existing group ID)
Group Name
# Groupadd-g 100 sun
Add users
Useradd command to add user group
Useradd [-u uid |-G group] |-D dir |-s shell |-C comment |-M [-K skel_dir] Login
Note:
U specified user ID
G: Specify the group
D. Specify the user directory.
S formulates the User Shell
C user's comment
M. Create a user directory.
Login Name of the login user
# Useradd-u 1233-G sun-D/export/home/Sun-C "Sun test user ."-M
-S/usr/bin/sh sun

Note: Only add-M
To create the files required by the user, such as. Profile and local. login.

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.