nerdexam
Linux_Foundation

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.

Submitted by minji_kr· Apr 18, 2026User and Group Management

Question

Which command will display the groups a user belongs to on a remote SMB server?

Options

  • Anet rpc group info
  • Bnet rpc group member
  • Cnet rpc user info
  • Dsmblookup member
  • Esmblookup user

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    79% (26)
  • E
    12% (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.

Anet rpc group info

`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.

Bnet rpc group member

`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.

Cnet rpc user infoCorrect

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.

Dsmblookup member

`smblookup member` is not a standard Samba command for querying user group memberships on a remote server.

Esmblookup user

`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

#User Group Management#SMB/CIFS#Active Directory#net rpc command

Community Discussion

No community discussion yet for this question.

Full LFCS Practice