nerdexam
Linux_Foundation

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.

Submitted by manish99· Apr 18, 2026Service Configuration

Question

Which command typed on a Samba 3 server will print out the local SID?

Options

  • Anet get sid localhost
  • Bnet getlocalsid
  • Cnet getsid
  • Dnet rpc get localsid

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    88% (22)
  • D
    4% (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.

Anet get sid localhost

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

Bnet getlocalsidCorrect

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.

Cnet getsid

`net getsid` is an incomplete command and lacks the necessary arguments or context to specify that it should retrieve the local domain SID.

Dnet rpc get localsid

`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

#Samba#net command#SID#Server identity

Community Discussion

No community discussion yet for this question.

Full LFCS Practice