Add a user in Linux and add a user to a group
1. Create a user whose username and password are hadoop:
Useradd hadoop
Passwd hadoop
1. We have a group named hadoops.
Groupadd hadoo
If AD is used in an enterprise for personnel and Computer Management, a Helpdesk position is generally set up in the enterprise. IT personnel of the company are responsible for the daily computer problems of employees of the company, in many cases, Helpdesk must have local administrator permissions on the computer to set software and systems on the computer, therefore, we need to add the Helpdesk user to th
Groupadd-g 1005 DevAdd user group specify GID to 1005Delete user Group DevAdd userAddUser Mikewill automatically prompt you to enter a password, etc.-u Specifies UID (System reserved 0-499)-g Specifies the shell used by the user group
; "src=" Https://s2.51cto.com/wyfs02/M02/8D/FE/wKioL1iyxkLid7jEAABPDTU0rI8793.png "style=" float : none; "title=" 2017-02-25 18-19-32 screen. png "alt=" Wkiol1iyxklid7jeaabpdtu0ri8793.png "/>Step3:Sudo-s promote identity to root administratorTo create a user group789 is the set of user group permissions that are made. No exception occurred after upgrading to root
Command: GroupaddSyntax: groupadd [-G GID] groupname[Email protected] ~]# groupadd grptest1[[email protected] ~]# tail-n1/etc/groupgrptest1:x:502:The "-g" option does not create groups according to the system default GID, which is the same as the user, with GID starting from 500.[Email protected] ~]# groupadd-g 511 grptest2[[email protected] ~]# tail-n2/etc/groupgrptest1:x:502:grptest2:x:511:The "-G" option allows you to customize the GID.
D
Detailed operation commands for CentOS user, group permissions, add delete user, etc.
The 1.Linux operating system is a multi-user multitasking operating system, including user accounts and g
mainly in/etc/passwd,/etc/shadow,/etc/group, and/etc/gshadow four files
The basic meaning is not much to say, the key point is that root uid is 0, from 1-499 is the standard account of the system, the average user starts from UID 500.
3. Manage accounts with commandsUseradd option User name//Add new userUSERMOD optio
identical, unless you use the-o parameter. The value cannot be negative. The default is to be a minimum of less than 500 and successive additions. 0~499 is traditionally reserved for system account use.
-r This parameter is used to establish the system account number. It will automatically help you select a GID less than 499 unless the command line plus the-g argument. This is the additional option for Red Hat.
-F This is the force sign. When a new existing
Tags: csdn ash userdel file track HTML information lin multipleOne, LINUX (ubuntu/centos) Users add delete Modify 1, build users:[Plain]View PlainCopy
AddUser Web//New Web user
Useradd web-m #添加web Users
passwd Web//Set password for Web users
Useradd web-g Admin-n-m//Create a new Web user and specify the
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...
1, Build Users:
AddUser PHPQ//New PHPQ Userpasswd PHPQ//Set Password to PHPQ user
2, the establishment of the Working GroupGroupadd test//New test Workgroup
3, new users to increase the team at the same timeUSERADD-G test PHPQ//new PHPQ user and add to test workgroup
Note:: The shell used by the group-D home Direct
Add a user to a user group and never use it directly:Usermod-g Groupa Doing so will allow you to leave the other user groups, just as members of this user group Groupa.Should be added w
Add a user to a user group and never use it directly:Usermod-g GroupaDoing so will allow you to leave the other user groups, just as members of this user group Groupa.Should be added wi
Tags: Unlock play Lin ATI class pre RECT/ETC BlogAdd a user to a user group and never use it directly:Usermod-g GroupaDoing so will allow you to leave the other user groups, just as members of this user group Groupa.Should be adde
Add a user to a user group in Linux. Do not directly use usermod-G groupA to leave other user groups, it is only a member of The groupA user group. -A option should be added: usermod-a-
Add a user and add a group in Linux
1. Create a user whose username and password are hadoop:
Useradd hadoop
Passwd hadoop
1. We have a group named hadoops.
Groupadd hadoops
2. Add
the login name-l ,--lock Lock the user account-m,--move-home move contents of the home directory to the new location (with only with-d)-O,--non-unique allow using duplicate (Non-unique) uid-p,--password password nbsp; use encrypted password for the new password-s,--shell shell New Login shell for the user account-u,--uid uid nbsp; new UID for the user acco
In Linux, the root user is a user with a high level of permissions, which threatens the security of the operating system, therefore, we usually use a common user name when operating the computer, and temporarily use the su command to switch to the root user only when super user
After Fedora14 is installed, sudo is not enabled by default. you should first set sudo. The role of sudo is to allow the current non-root user to directly add sudo to the command before using commands without permissions, and then enter the password of the current user to complete the function of the root user, you don
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.