Useradd
Useradd [-C comment] [-D Home_dir]
[-E Expire_date] [F Inactive_time]
[G Initial_group] [G group[,...]]
[m [-K Skeleton_dir] |-m] [-s Shell]
[-U uid [-O]] [-N] [-R] Login
useradd-d [G Default_group] [-B default_home]
[F Default_inactive] [-E Default_expire_date]
[-S Default_shell]
New Account Establishment
When the-D argument is not added, the useradd instruction uses the command column to specify the set value of the new account and
In the UNIX system, privileges, such as being able to change the system's notion of the current date, and access control, such as being able to read or write a particle file, are based on user and group IDs. when our programs need additional privileges or need to gain access to resources that they currently aren't allowed to access, they need to change their user
1: What is a user? What is a user group?User: Is the identity of the system usersUser group: A collection of users with the same characteristics, sharing a certain power2: Types of users and user groups?
User and User group managementLinux is a multi-user multi-tasking time-sharing operating system, all users who want to use the system resources must first request an account from the system administrator, and then enter the system as the identity of the account. On the one hand, the user's account can help the system a
One, user management commandsUser Information file:/etc/passwdaa:x:501:501: null:/home/aa:/bin/bashFirst column: User nameSecond column: Password bitThird column: UID user id=> more than 500 ordinary usersFourth column: GID initial group IDFifth Column: User descriptionSixth
First, prefaceThis series of essay notes is not a detailed description of the principles of the command, just a simple record,For later review and reviewSecond, direct input command problem
Sometimes, when we use Useradd Groupadd and other commands, directly at the terminal input, will prompt, no this command or command does not exist message
This is because the commands we enter directly are the commands in the/usr/bin directory, and our Useradd groupadd command is in the/usr/sbin
1 User Profiles1.1 User Information file /etc/passwdView Help man 5 passwd--Account:password:UID:GID:GECOS:directory:shell-account User name Notice specification-PASSWD password flag x indicates password specific password in shadow-uid user ID 0: superuser, determined by UID, not determined by
User Management commandsCommand name: UseraddFunction: Add user (cannot be used immediately after adding, must change user password with passwd before use)Usage: useradd [options] User nameOption parameters:-U manually specify UID for user-D Manually specify the user's home
One, user files:/etc/passwd[[email protected] ~]# Cat/etc/passwdroot:x:0:0:root:/root:/bin/bash 1 2 3 4 5 6 7 ||||||||||||||--the default shell used by the user ||||||--User Home Directory |||||--User Finger Information (Note information) || | | |--user
linux-user and user group base commands and actions
Adding users and user groupsAdd User: Useradd admin Add user called admin
Add Group: Groupadd Admin Add
Because there are many Linux commands and many options, you can only master some common commands to learn:
User and user group management commands1. useradd commandUseradd Add a user-G indicates the Primary Group of the user.-G:
ObjectiveIn this article, I am going to explain, how to insert multi user or more than one user in Share Point list.About Sharepoint list where value wocould be inserted
There is a list calledTestinguser.
There is one column in list calledUsertest.
This column is of TypePerson or group.
Allow multiple selections are true.
Allow selection is setPeople and
Summary of command knowledge about/etc/passwd,/etc/shadow,/etc/group, as well as user management and viewing of user information/etc/passwd filepasswd files are user-related information, package contains user name, password, belongs to the main UID,
# ID # Displays the ID of the current user and user group# WHO # Displays user information currently logged into the system#su change user identity[Email protected]/] #su chenlly[[Email protected]/]#cat/ETC/PASSWD File StructureRoot:x:0:0:root:/root:/bin/bashchenlly:x:1000:1
Tags: htm linux centos. com tail input useful is Linux andOne, Linux and Windows inter-pass files
There are two ways that I can learn Linux and Windows to pass files.
yum install -y lrzszEnter SZ + fileYou can transfer your Linux files to WindowsRZ can choose to transfer Windows files to Linux(This method can be used for Xshell,putty not supported)2.xftpAnother component of Xshell that can be graphically transmitted to and from a file.Download linkHttps://www.netsarang.com/products
Add a user to a user group in Linux. do not directly use usermod-GgroupA to leave other user groups, it is only a member of the groupA user group. -A option should be added: usermod... add a u
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.