command to retrieve user information

Hi,

I want the command to retrieve the existing user information such as

  • authorization
  • Profile
  • role
  • exipre(expiration date of login)
  • inactive

please tell me how to do that
Thank you.

the required info can be retrieve from /etc/passwd and /etc/shadow file

can u be bit elaborate as what u mean by
authorization
Profile
role

expiration - you can get from /etc/shadow
inactive - again from /etc/shadow in the second column u can look for *LK* against the username

thank you kumarmani.

I have found all the fields by your idea

  • authorization- cmd:auths username (or from etc/user_Attr)
  • Profile - cmd:profiles username (or from etc/user_Attr)
  • role - cmd:roles username (or from etc/user_Attr)
  • exipre(expiration date of login) -8th filed in etc/passwd
  • inactive -7th filed in etc/passwd

thank you very much

There are actually commands to get the roles, authorizations and profiles for a given user.

They are cleverly named roles, auths and profiles.