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.
Question
Options
- Anet rpc group info
- Bnet rpc group member
- Cnet rpc user info
- Dsmblookup member
- Esmblookup user
How the community answered
(54 responses)- A4% (2)
- B2% (1)
- C93% (50)
- D2% (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.
`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.
`net rpc group member` is used to list the members of a given group, rather than listing the groups a specific user belongs to.
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.
`smblookup` is primarily utilized for NetBIOS name resolution and does not provide functionality for querying user group memberships on an SMB server.
`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
Community Discussion
No community discussion yet for this question.