You can easily see your UID and GID numbers on your AIX account by running the id command. 您可以很容易地通过运行id命令来查看AIX帐户上的UID和GID编号。
This is because the system stores the UID and GID number for the owner and group on each file rather than storing a user or group name. 这是因为系统在每个文件中存储的是所有者和组的UID和GID编号,而不是用户或组名称。
Because changing UIDs and GIDs can cause serious harm to your environment, you must be careful. 由于更改UID和GID可能会对您的环境造成严重损害,因此必须非常小心。
And with a little scripting, you can solve your UID and GID problems more quickly. 通过使用一些脚本,您可以更快地解决UID和GID问题。
This is done by running two find commands which search for all files with the previous UID and GID. 这是通过运行两个find命令来完成的,它们会查找具有之前的UID和GID的所有文件。
Set Attribute allows the possessor to set the key's UID, GID, and permissions mask. SetAttribute允许权限持有者设置密钥的UID、GID和权限掩码。
If your environment has dozens of AIX servers and each server has dozens of users and groups, it becomes very obvious that manually changing all UIDs and GIDs is not practical. 如果您的环境中有多个AIX服务器,而且每个服务器都有多个用户和组,那么显然手动更改所有UID和GID是不切实际的。
As you can see, where the user and group are normally displayed, you now only see the previous UID and GID numbers displayed ( 404 and 402). 如您所见,用户和组都正常显示,您只看到之前显示的UID和GID编号(404和402)。
The GID associated with the group. 与组相关联的GID。
Each file stored on the LUN has the file owner and group stored as UID and GID numbers. 存储在LUN上的每个文件都有一个文件所有者和一个组,保存为UID和GID编号。
At this point, the brian UID and testgroup GID have been changed on the system. 此时,系统上brian的UID和testgroup的GID都已改变。
In this example, you will change a single UID for a user ( brian) and a GID for a group ( testgroup). 本例中,您将更改用户(brian)的UID和组(testgroup)的GID。
Remember, when you change UIDs and GIDs in AIX, the permissions on the files and directories don't change: the files must be changed manually. 请记住,当在AIX中更改UID和GID时,文件和目录上的权限并没有更改:必须手动更改文件。
This article explains what UID and GID numbers are on AIX and some of the specific problems of having the previously mentioned inconsistencies among multiple servers. 本文讲解了AIX上的UID和GID编号究竟是什么,以及前面提到的多个服务器上的编号不一致会造成的几个具体问题。
If you have multiple servers, UID and GID numbers might not be consistent across servers. 如果您有多个服务器,那么这多个服务器之间的UID和GID编号可能不一致。
Changing a GID or UID number is a multi-step process. 更改GID或UID编号分为多个步骤。
Instead, the UID and GID numbers that represent the user and group are stored. 存储的是表示用户和组的UID和GID编号。
This chuser command updates the/ etc/ passwd file for the brian user with the testgroup's new GID number. chuser命令会用testgroup的新GID编号更新/etc/passwd文件中的brian用户。
If you have more than one server in your environment, UID and GID numbers can quickly become inconsistent between servers. 如果环境中有一个或多个服务器,服务器之间的UID和GID会很快变得不一致。
Keep UIDs and GIDs consistent in your environment 在环境中保持UID和GID的一致性
When you have another maintenance window, simply run the fix_gid_uid.pl script again. 如果有了另外一个维护时段,只需再次运行fixgiduid.pl脚本。
File ownership in AIX is determined by the UID, and group file permissions are determined by the GID. AIX中的文件所有权是由UID确定的,组文件权限是由GID确定的。
Steps to manually change a GID and UID number 手动更改GID和UID编号的步骤
Central authentication systems, like LDAP, generally require that LDAP enabled users and groups have consistent UIDs and GIDs across all servers that are LDAP connected. LDAP等集中认证系统通常要求通过LDAP连接的所有服务器上启用LDAP的用户和组具有一致的UID和GID。
You can change a UID and/ or a GID two ways. 可以通过两种方法更改UID和/或GID。
You can run the id brian command to see the new UID and GID. 您可以运行idbrian命令来查看新的UID和GID。
Set the uid and gid of the mqm group to be identical on all systems. 将所有系统上的mqm组的uid和gid设置为相同的值。
There are some basic rules for UID and GID number ranges. 对于UID和GID的编号范围有一些基本规则。
The process table keeps track of running processes based on UID and GID numbers. 进程表会根据UID和GID编号跟踪正在运行的进程。