300-300 · Question #37
How is the user user01 from DOMA granted the right to manage printers on a Samba print server?
The correct answer is B. net -S server -U domadmin rpc rights grant 'DOMA\user01' SePrintOperatorPrivilege. Option B is correct because net rpc rights grant is the proper Samba command for assigning privileges to domain users - it connects to the server (-S server), authenticates as a domain admin (-U domadmin), and grants SePrintOperatorPrivilege, which is the Windows privilege…
Question
Options
- Anet ads rights 'DOMA\user01' +SePrintOperatorPrivilege
- Bnet -S server -U domadmin rpc rights grant 'DOMA\user01' SePrintOperatorPrivilege
- Cpdbedit --user=user01 -I=DOMA --policies=SePrintOperatorPrivilege
- Dpdbedit DOMA\user01 +PrintOperator
- Ecupsaddsmb DOMA\user01 +PrintOperator
How the community answered
(38 responses)- A8% (3)
- B74% (28)
- C3% (1)
- D3% (1)
- E13% (5)
Explanation
Option B is correct because net rpc rights grant is the proper Samba command for assigning privileges to domain users - it connects to the server (-S server), authenticates as a domain admin (-U domadmin), and grants SePrintOperatorPrivilege, which is the Windows privilege token that allows a user to manage printers on a Samba print server.
Why the distractors are wrong:
- A uses
net ads rights, which is not a valid subcommand -net adsis used for Active Directory operations like joining a domain, not privilege assignment. - C uses
pdbeditwith fabricated flags (-I,--policies) -pdbeditmanages the Samba user database (passwords, account info), not privilege rights. - D also uses
pdbeditwith a+PrintOperatorsyntax that doesn't exist in Samba; this looks like a confused mix of Linux group syntax. - E uses
cupsaddsmb, which is a tool for installing Windows printer drivers into Samba shares - it has nothing to do with user privilege assignment.
Memory tip: Think "RPC = Rights Privilege Command" - the net rpc rights grant chain is the only one that contains all three necessary elements: the transport (rpc), the action (rights grant), and the privilege token (SePrintOperatorPrivilege). If you see SePrintOperatorPrivilege, the correct tool is always net rpc rights grant.
Topics
Community Discussion
No community discussion yet for this question.