if ($olduid != $newuid){
print “chuser id=$newuid
$user\n”;
print “find / -user $olduid
-exec chown -h $user {} \\;\n”;
}
}
}
}
close UIDFILE;Conclusion
Having consistent UID and GID numbers across
multiple AIX servers is considered best practice and, as
demonstrated in this article, is an achievable goal. By
following the process outlined throughout this article,
system administrators will likely prevent future issues
from occurring by standardizing UID and GID numbers.
Resources
LEARN
See the AIX information Center for more information
about the commands referenced in this article:
chgroup
chuser
find
Try out IBM software for free. Download a trial version,
log into an online trial, work with a product in a sandbox
environment, or access it through the cloud. Choose from
over 100 IBM product trials.
Participate in developer Works blogs and get involved
in the developer Works community.
Get involved in the My developer Works community.
Participate in the AIX and UNIX® forums:
o AIX Forum
o AIX Forum for developers
o Cluster Systems Management
o Performance Tools Forum
o Virtualization Forum
o More AIX and UNIX Forums
About the Author
Brian Smith is a UNIX system administrator for
Intermountain Healthcare in Salt Lake City, Utah.
An event for high-level IT decision-makers that want to
maximize their Power Systems investment.
•
Learn about the latest industry updates and available business solutions directly from IBM
executives and other industry experts.
•
Understand the leading edge developments in IT and Power Systems that can revolutionize your
business.
•
Interact with your peers in a small group setting to learn best practices shared with IT Directors, CIOs
and other IBM i executives.
•
Create invaluable relationships with fellow IT decision-makers, industry experts and IBM leaders.
•
Benefit from additional education and unlimited access to the COMMON 2012 Annual Meeting and
Exposition, the premier Power Systems-related educational and networking event.
•
Meet one-on-one with industry vendors at the COMMON Exposition.