Answer the question
In order to leave comments, you need to log in
What command can be used to get information about another user besides the id command on linux?
What command can be used to get information about another user other than the id command on linux
Thanks in advance! PS I need a specific command, I know how to search on the conf file, I just need a command other than id
Answer the question
In order to leave comments, you need to log in
groups ЮЗЕР
as an option, if the user was created using the new homectl mechanism, then you can look like this:
homectl inspect ЮЗЕР
specifically, the groups in which the user is a member can be filtered like this:
homectl inspect ЮЗЕР -j | jq -r '.memberOf[]'
What kind of information? The fact of presence in the system? Homework? UID/GID? This is all taken from /etc/passwd with a regular grep.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question