B
B
by_EL2020-12-19 23:27:49
linux
by_EL, 2020-12-19 23:27:49

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

4 answer(s)
X
xotkot, 2020-12-20
@xotkot

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[]'

S
SOTVM, 2020-12-20
@sotvm

look in /etc/shadow
if you have root rights)))

C
CityCat4, 2020-12-20
@CityCat4

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.

S
Saboteur, 2020-12-21
@saboteur_kiev

getent passwd <юзер>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question