LFCS · Question #616
Which command typed on a Samba 3 server will print out the local SID?
The correct answer is B. net getlocalsid. On a Samba 3 server, the net getlocalsid command is used to display the Security Identifier (SID) assigned to the local Samba domain.
Question
Options
- Anet get sid localhost
- Bnet getlocalsid
- Cnet getsid
- Dnet rpc get localsid
How the community answered
(25 responses)- A8% (2)
- B88% (22)
- D4% (1)
Why each option
On a Samba 3 server, the `net getlocalsid` command is used to display the Security Identifier (SID) assigned to the local Samba domain.
While `net get sid` is a valid command, it typically requires an argument to specify the target (e.g., a domain or user SID), and `localhost` might not explicitly yield the domain SID without further context, unlike the direct `getlocalsid`.
The `net getlocalsid` command is the specific and correct utility used on a Samba server to retrieve and display its own local domain Security Identifier (SID), which uniquely identifies the Samba domain.
`net getsid` is an incomplete command and lacks the necessary arguments or context to specify that it should retrieve the local domain SID.
`net rpc get localsid` is not the correct syntax for retrieving the local SID; the `rpc` subcommand is generally used for remote procedure calls, not direct local SID retrieval.
Concept tested: Samba local SID retrieval
Source: https://www.samba.org/samba/docs/current/manpages/net.8.html
Topics
Community Discussion
No community discussion yet for this question.