nerdexam
CompTIA

LX0-104 · Question #319

The text below is an excerpt of the Samba main configuration file. Select the THREE correct statements: [global] logon script = logon.cmd [netlogon] path = /var/lib/samba/netlogon read only = yes writ

The correct answer is B. The file excerpt shows that Samba will instruct the client to execute a logon script in order to prepare C. The logon script directive is always relative to the [netlogon] share. E. Samba doesn't provide the logon.cmd script contents.. This Samba configuration excerpt sets up a logon script (logon.cmd) to be executed by clients, which is provided from the [netlogon] share and managed by the administrator.

Essential System Services

Question

The text below is an excerpt of the Samba main configuration file. Select the THREE correct statements: [global] logon script = logon.cmd [netlogon] path = /var/lib/samba/netlogon read only = yes write list = root

Options

  • AThe logon script has to be in ASCII Linux format.
  • BThe file excerpt shows that Samba will instruct the client to execute a logon script in order to prepare
  • CThe logon script directive is always relative to the [netlogon] share.
  • DAny user can modify the logon.cmd script.
  • ESamba doesn't provide the logon.cmd script contents.

How the community answered

(32 responses)
  • A
    16% (5)
  • B
    78% (25)
  • D
    6% (2)

Why each option

This Samba configuration excerpt sets up a logon script (`logon.cmd`) to be executed by clients, which is provided from the `[netlogon]` share and managed by the administrator.

AThe logon script has to be in ASCII Linux format.

Logon scripts (`.cmd` or `.bat`) are typically executed by Windows clients and should therefore be in a Windows-compatible format (e.g., CRLF line endings), not necessarily ASCII Linux format (LF line endings).

BThe file excerpt shows that Samba will instruct the client to execute a logon script in order to prepareCorrect

The `logon script` directive in the `[global]` section instructs Samba to inform the client to execute the specified script (`logon.cmd`) after a successful logon, which is typically used for client environment preparation.

CThe logon script directive is always relative to the [netlogon] share.Correct

When `logon script` is defined in the `[global]` section, Samba expects the script to be found within the share designated as `[netlogon]`, making the script path relative to that share's configured `path`.

DAny user can modify the logon.cmd script.

The `write list = root` parameter configured for the `[netlogon]` share explicitly restricts write access to only the 'root' user, meaning other users cannot modify the `logon.cmd` script.

ESamba doesn't provide the logon.cmd script contents.Correct

Samba itself provides the mechanism for clients to download and execute a logon script, but it does not supply the actual contents of the `logon.cmd` file; administrators must create and manage this script.

Concept tested: Samba logon script and netlogon share

Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html

Topics

#Samba configuration#logon scripts#netlogon share#smb.conf

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice