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