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
assigns it ID number 412400#groupdel CDL Delete a group#groups chenlly View the group that the user chenlly belongs to#useradd chenlly-u 3466-g 412400 (or group name) create a user and join the group ID of 412400 and can follow t
the user and delete the associated files at the same time4. Create user group and parameter descriptionUsage:Groupadd (option) (parameter)Parameters:-G: Specify GID for new group-r: Create a system group (ID between 1-499 1-999)-O: Allow
password was last changed4 How many geniuses can you change your password, which is 0 by default, without limiting5 Number of days after the password expires, the default value is large enough to understand that it will not expire6 Prompt before password expires, default is 7, reminder user one week before password expires, password expires in one week7 account lockout period, such as set to 3, meaning that the password has expired, the
Linux is a multi-user multitasking operating system, all users who want to use system resources must first apply to the system administrator for an account, and then enter the system as the identity of the account. The user's account can help the system administrator to track the users who use the system and control their access to the system resources, on the other hand, it can help users organize files and provide security protection for users. Each
2, user, user group management operation detailed:
2.1 AddUser Add Users:
AddUser [-u uid][-g group][-d home][-s Shell]
- u: give directly the UserID
- G: give directly the GID
- D: directly establish the root directory in an existing directory
- S: defini
1. Create a user name and password for users who are Hadoop:Useradd Hadoop passwd Hadoop1. We have a group named HadoopsGroupadd Hadoops2. Add Hadoop users to the Hadoops group gpasswd-a Hadoop hadoops Adding user Hadoop to group
1. Create a user name and password for users who are Hadoop: Useradd Hadoop passwd Hadoop1. We have a group named Hadoops Groupadd Hadoops2. Add Hadoop users to the Hadoops groupgpasswd-a Hadoop hadoops Adding user Hadoop to group Hadoops--this line appears to
1: View all groups of users
Cat /etc/group
ftpgroup:x:1001:ftpadmin
Ftpgroup is a user group and ftpadmin is a user of this group
1) Create user groups
Groupadd Ftpgroup
2) Delete user
In the previous section, we learned about user and group. now, let's take a look at how to manage users and user groups. Related Management commands summary User management related commands useradd add user adduser
Users and user groups in Linux-Linux general technology-Linux technology and application information. For details, refer to the following section. The main task of user management is to create a legal user account, set and manage user passwords, modify user account attribute
);//Operation Act_id_userfor (String id:roleids) {Role role = Roledao.findbyid (ID);//User Association role User.getroles (). Add (role);//Add the AC user to the AC Group Role.getname () Use the role name as the group ID for easy
Tags: User and user Group profile timestampLinux System account file mainly has/etc/passwd,/etc/shadow,/etc/group,/etc/gshadow four files, which and user-related files/etc/passwd user profiles,/etc/ Shadow shadow password file, an
Simulation ScenariosHT company is ready to deploy a file server for strict rights management. Allow users to access only their own files. A total of 3 departments and 15 employees, asked to create these 15 accounts, and then by the Department classification management.
Department
Chinese name
English name
manager Kevin
kevin
department (Ministry of Information)
Tian Tian
andrew
Mai Mai
Michael
How does one add or delete a user in win10? Add or delete a user in Windows 10, win10window10
In the operating system, different users have different settings, or how to manage new and deleted users with different permissions.
Right-click my computer and choose manage"
Expand "local users and groups", and the
server after modification (remove the # at the front end and change it to anon-access = none)Password-db = password # Name of the file saved by the user (remove the # above)Authz-db = authz # permission management file is very important. if we want to assign permissions to the entire project file, we must comment out the row file, no, even if we do more configuration in the permission configuration file, it is invalid. (Remove the # above)
3. create
When you use Linux, you need to log in as a user, limiting the resources that a consumer can access, and groups are used to facilitate the organization's management of users.
Users and Groups
• Each user has a UserID• Each user belongs to a primary group, belonging to one or more subordinate groups• Each
In this forum system, user group settings are very important. You can add user groups as needed.
Permission settings, used to check whether you have the permission to browse the corresponding Forum
So how can we make a registered member have a "member" User
Solemnly declare: This article is reproduced on the Internet by the author, and the ownership belongs to the original author!
Address: http://blog.chinaunix.net/uid-20648944-id-3190395.html
View the current Login User$ WhoLoongson tty7 2012-04-27 08:58 (: 0)Loongson pts/0 2012-04-27 (: 0.0)Loongson pts/1 (: 0.0)Loongson pts/2 (: 0.0)
$ FingerLogin Name TTY Idle login time office phoneLoongson tty7 12 Apr 27 08:58 (: 0)Loongson pts/0 4 Apr 27 (: 0.0)L
Typically, when a database is restored, a login name is added to the database.For example, the database backup file already contains the user ABC, now restore the database, and then found that the existing database does not have the ABC user, want to create a new ABC user, as the owner of the database, this problem occurs.http://blog.csdn.net/cjh200102/article/de
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.