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.
Hi,
I want the command to retrieve the existing user information such as
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
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.