Tags: useradd groupadd usermod passwd mkpasswdGet to know two files first/etc/passwd/etc/shadowWe print out three lines to understand the following:Each line consists of: Split into 7 segments, each paragraph meaning:First paragraph: User name, such as root user, ordinary user test,lv,test1The second paragraph: early storage account login password, due to securit
1. Create user and parameter descriptionUsage:Useradd (option) (parameter)Parameters:-D: Specify home directory when creating user-D: Modify the default value when creating a user-e: Specify the expiration date of the account-F: Specifies how long a user's password can be used after it expires-G: Specify the group to w
Article Title: Linux User and user group management commands. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Linux is a multi-user multi-task time-sharing operating system. any
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: definition Shell
Add
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 Directory-S for-G
4, to the existing
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
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 user
In Linux, how does one add a user to a user group? How does one add a user to a user group in Linux? When using a common method to create a user, such as the Shell code # useradd testus
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
1)/etc/passwd The meaning of the file field
1th Domain: User name
2nd domain: Password
3rd domain: User ID
4th domain: User group ID (0 indicates belong to root group)
5th field: Comments and text
6th domain: User home dir
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
1, create user Gentoo, additional group is bin and root, default shell is/bin/csh, annotation information is "gentoodistribution"[Email protected] ~]# useradd-g bin,root-s/bin/csh-c "Gentoo distribution" Gentoo2. create the following user, group, and group membershipsA
1, Linux system, the user is divided into three kinds: super users, System users, ordinary users; Each user has their own UID, the UID of the superuser is 0; the system user refers to the service or software on which the system is running, and the system user's ID range is 1~ 499. Ordinary users are all real users who use Linux, they will be strictly assigned per
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 with the-a option:Usermod-a-G Groupa
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 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 with the-a option:Usermod-a-G Groupa
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-G groupA
!!!!
At the permission level, the directory permission priority may be higher than the File Permission under it! Different applicationsProgramThere are usually different behavior methods:Head, tail, Cat, more, less and other file content processing tools, only controlled by File PermissionsVI and other editing tools are affected by the directory permission. If the File Permission is insufficient, you can use the directory permission forcibly. The
http://blog.csdn.net/pursue168/article/details/6443046Add 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
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.