LFCS · Question #656
Which command will display the groups a user belongs to on a remote SMB server?
The correct answer is C. net rpc user info. The net rpc user info command is used to retrieve detailed information about a specific user, including their group memberships, from a remote Samba or Active Directory domain controller.
Question
Options
- Anet rpc group info
- Bnet rpc group member
- Cnet rpc user info
- Dsmblookup member
- Esmblookup user
How the community answered
(33 responses)- A3% (1)
- B6% (2)
- C79% (26)
- E12% (4)
Why each option
The `net rpc user info` command is used to retrieve detailed information about a specific user, including their group memberships, from a remote Samba or Active Directory domain controller.
`net rpc group info` is used to get information about a specific group, such as its members, but not to list groups a user belongs to.
`net rpc group member` is used to list members of a specific group, or add/remove members from a group, not to find groups a user belongs to.
The `net rpc user info <username>` command specifically queries a remote RPC server for comprehensive details about the specified user, which includes a list of all groups the user is a member of in the domain.
`smblookup member` is not a standard Samba command for querying user group memberships on a remote server.
`smblookup user` is not a standard Samba command for querying user group memberships on a remote server.
Concept tested: Querying remote SMB user groups
Source: https://www.samba.org/samba/docs/current/manpages/net.8.html
Topics
Community Discussion
No community discussion yet for this question.