These are commands to help assist with retrieving the server version, password settings, and users with administrative access to the server. The commands are designed to only read data and will not modify or create data in the server.
This will show the version of the AIX server.
oslevel -s > version.txtThis will show the password settings of user accounts on the AIX server.
/etc/passwd > PasswordSettings.txtIf the above command doesn't work, try one of the following.
sudo passwd --status --all > PasswordSettings.txtsudo passwd -S -a > PasswordSettings.txtThe /etc/security/user file contains extended user attributes. This is an ASCII file that contains attribute stanzas for users. If an attribute is not defined for a user, the default value for the attribute is used.
/etc/security/user > SecurityUser.txtThis will show the user accounts on the AIX server.
lsuser -C -a id login admin account_locked default_roles groups pgrp roles shell su sugroups admgroups gecos auth1 auth2 dictionlist expires histexpire histsize loginretries maxage minage minlen pwdchecks rlogin ALL > Users.txtThis will show the valid login shells on the AIX server.
sudo cat/etc/shells > LoginShells.txtThis will show the user groups on the AIX server.
lsgroup -C -a adms admin id users ALL > Groups.txtThis is to determine what groups/accounts can run commands as root.
sudo cat /etc/sudoers > Sudo.txt