nerdexam
CompTIA

LX0-104 · 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. To ascertain the groups a user belongs to on a remote SMB server, the net rpc user info command is used. This command queries the remote server for detailed information about a specified user, including their group memberships.

Shells, Scripting and Data 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

(54 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    93% (50)
  • D
    2% (1)

Why each option

To ascertain the groups a user belongs to on a remote SMB server, the `net rpc user info` command is used. This command queries the remote server for detailed information about a specified user, including their group memberships.

Anet rpc group info

`net rpc group info` provides details about a specific group, such as its members, but does not list the groups to which a particular user belongs.

Bnet rpc group member

`net rpc group member` is used to list the members of a given group, rather than listing the groups a specific user belongs to.

Cnet rpc user infoCorrect

The `net rpc user info <username>` command queries a remote Windows or Samba server via RPC to retrieve comprehensive details about a specified user, which explicitly includes their primary group and any other groups they are a member of within that domain.

Dsmblookup member

`smblookup` is primarily utilized for NetBIOS name resolution and does not provide functionality for querying user group memberships on an SMB server.

Esmblookup user

`smblookup user` is not a valid or standard command for retrieving user group memberships from a remote SMB server; `smblookup` focuses on NetBIOS name lookups.

Concept tested: Samba remote user-group management

Source: https://www.samba.org/samba/docs/current/manpages/net.8.html

Topics

#net rpc#SMB#user groups#command-line tools

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice