LX0-104 · Question #616
Which command typed on a Samba 3 server will print out the local SID?
The correct answer is B. net getlocalsid. The net getlocalsid command is used on a Samba 3 server to retrieve and print its local Security Identifier (SID).
Question
Options
- Anet get sid localhost
- Bnet getlocalsid
- Cnet getsid
- Dnet rpc get localsid
How the community answered
(15 responses)- A7% (1)
- B87% (13)
- D7% (1)
Why each option
The `net getlocalsid` command is used on a Samba 3 server to retrieve and print its local Security Identifier (SID).
`net get sid localhost` is not the correct syntax for retrieving the local SID directly; `net getlocalsid` is the precise and correct command for this purpose.
The `net getlocalsid` command is specifically designed in Samba to display the local Security Identifier (SID) of the Samba server, which is essential for domain membership and trust relationships.
`net getsid` typically expects a remote target or domain, whereas `net getlocalsid` explicitly retrieves the SID of the local Samba server.
`net rpc get localsid` is not a standard or correct `net` command syntax for obtaining the local SID on a Samba server; `net getlocalsid` is the recognized command.
Concept tested: Samba SID retrieval commands
Source: https://www.samba.org/samba/docs/current/manpages/net.8.html
Topics
Community Discussion
No community discussion yet for this question.