Linux Create system administrator user

Source: Internet
Author: User


Ubuntu Add System User (below)

[Email protected]:~# sudo useradd-s/bin/bash-mr solin[email protected]:~# passwd solin [email protected]:~# sudo adduse R Solin sudo# View created user [email protected]:~# cat/etc/passwd ...

View Help

[email protected]:~# useradd --help  usage: useradd [option]  Login        useradd -d      useradd -d [options] Option:   -b,  --base-dir base_dir the base directory of the new account's home directory   -c, --comment COMMENT           New Account  GECOS  fields   -d, --home-dir HOME_DIR         the home directory of the new account   -d, --defaults display or change the default  useradd  configuration   - e, --expiredate expire_date   expiration date of new account   -f, --inactive INACTIVE         new account's password inactivity period   -g, --gid group The name of the new owner group or  ID   -g, --groups groups List of additional groups for new accounts   -h, --help                      displays this help information and launches   -k,  --skel skel_dir useThis directory is used as skeleton directory   -K, --key KEY=VALUE             Do not use the default value in  /etc/login.defs    -l, --no-log-init do not add this user to the most recent logon and logon failure database   -m ,  --create-home creates a user's home directory   -m, --no-create-home does not create a user's home directory   -n, -- No-user-group does not create a group with the same name   -o, --non-unique allow duplicate  UID  create user   -p, --password New account password after  password encryption   -r, --system                    Create a System account   -r, --root chroot_dir          chroot  to the directory   -s, --shell  Shell New Account Login  shell  -u, --uid uid new account user  id  -u, -- User-group Create a group with the same name as the user   -z, --selinux-user seuser use the specified  seuser for the  SELinux  user mappings

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M01/92/9E/wKiom1kBXyTylGIUAAJ574MDHvY788.jpg "title=" 5.jpg "alt=" Wkiom1kbxytylgiuaaj574mdhvy788.jpg "/>

This article is from the "Ops Little Boss" blog, please be sure to keep this source http://solin.blog.51cto.com/11319413/1919943

Linux Create system administrator user

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.