How To Check User Details In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Use the id command to check user details in Linux. The id command displays the user’s identity, real and effective user and group IDs, supplementary group list and script login name.
2. Use the finger utility to check user details in Linux. The finger command is used to display information about a user on the system, like the user‘s real name, office location, phone number, etc.
3. Use the getent utility to check user details in Linux. The getent command lists entries in the various administrative databases like passwd, group, hosts, etc. It can be used to obtain information about an individual user, such as their home directory or shell.
4. Use the chage utility to check user details in Linux. The chage command is used to view and set account aging information. It can be used to view the last password update, the number of days before a password change is required, etc.