nerdexam
CompTIA

LX0-104 · Question #586

In which section of the smb.conf configuration file is the logon script declared?

The correct answer is C. [global]. The logon script parameter, which defines a script to be executed upon user login for Windows clients, is declared within the [global] section of the smb.conf configuration file.

Essential System Services

Question

In which section of the smb.conf configuration file is the logon script declared?

Options

  • A[homes]
  • B[netlogon]
  • C[global]
  • D[profiles]

How the community answered

(15 responses)
  • A
    7% (1)
  • B
    7% (1)
  • C
    87% (13)

Why each option

The `logon script` parameter, which defines a script to be executed upon user login for Windows clients, is declared within the `[global]` section of the `smb.conf` configuration file.

A[homes]

The `[homes]` section is used for defining user home directories and is not the location for global logon script declarations.

B[netlogon]

While logon scripts are often stored in a `[netlogon]` share, the `logon script` parameter itself, which points to that script, is declared in the global section.

C[global]Correct

The `logon script` parameter specifies a script to run when a user authenticates to the Samba server, and as a general setting that affects all user logins, it is correctly placed in the `[global]` section of the `smb.conf` file.

D[profiles]

The `[profiles]` section is designated for configuring user roaming profiles and does not contain the `logon script` parameter.

Concept tested: Samba logon script location smb.conf

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

Topics

#Samba configuration#smb.conf#logon script

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice