On Linux, users, user groups, and private user groups forum null
〖
Back to〗 Forward〗
On Linux users, user groups, and private user group users, groups and private user groups manage users and calendars are boring and boring. Red Hat Linux has several system tools and agreed measures, quite useful, using users and group management simpler. Managing users and groups The most simple method is to use the "UserSandGroups" module on the control panel. You can also create new users with the addUser command in a command line. 1 Standard UserS Table 81 lists the standard users created during the installation process (where the contents listed in the list and the description of the / etc / passwd file are consistent). The group ID number in the table is the code of the primary group where the user is located. Please check the knowledge of the relevant groups until 11.1.3. User uid gid home directory shell root 0 0 / root / bin / bash bin 1 1 / bin daemon 2 2 / sbin ADM 3 4 / VAR / ADM LP 4 7 / VAR / SPOOL / LPD SYNC 5 0 / SBIN / BIN / SYNC SHUTDOWN 6 0 / SBIN / SBIN / SHUTDOWN HALT 7 0 / SBIN / SBIN / HALT MAIL 8 12 / VAR / SPOOL / MAIL NEWS 9 13 / VAR / SPOOL / News UUCP 10 14 / VAR / Spool / UUCP Operator 11 0 / Root Games 12 100 / USR / Games Gopher 13 30 / USR / LIB / GOPHER-DATA FTP 14 50 / HOME / FTP NOBODY 99 99/2 Standard User Groups 82 lists the standard user groups created during the system installation (which is The content described in / etc / group file). GROT BIN 1 ROOT, BIN, DAEMON DAEMON 2 ROOT, BIN, DAEMON SYS 3 ROOT, BIN, ADM 4 ROOT, ADM, DAEMON TTY 5 Disk 6 Root LP 7 daemon, LP MEM 8 KMEM 9 WHEEL 10 Root Mail 12 Mail News 13 News UUCP 14 UUCP MAN 15 Games 20 Gopher 30 DIP 40 FTP 50 Nobody 99 Uses 100 FLOPPY 19 Chart 82: Standard User Group 3 Private User Group In order to make the traditional UNIX user group easier, the red hat Linux is used. A pattern called private user group (UPG). Private user group mode does not change any of the previous Unix processing groups. It only provides a new way of managing user groups. Once you have created a new user, the default will have a unique user group. The principle of this mode is as follows: Every user in the private user group system has a primary group. UMASK = 002 The traditional UNIX value is 022 so that the user's file can be prevented from modifying the user with other users who belong to the group and any other group. Since each user owns and belongs to a private group, this "group protection mode" is not needed. Set the UMASK value to 002 to prevent the user from tamper with the private file of others. The umask value is set in the / etc / profile file. The SGID bit of the directory If you set the SGID bit of the directory (using the command: ChModG S directory name), the genus group of the file created in this directory will be the same as the part of the directory. Most sites like to create user groups for each primary project, and then assign users to the corresponding group. In the past, the access of the management file is difficult, although the group of files created by the user will be set to the primary group belonging to the user.