nerdexam
Linux_Foundation

LFCS · 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 in smb.conf is declared within the [global] section to apply to all users authenticating against the Samba server.

Submitted by yuki_2020· Apr 18, 2026Service Configuration

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

(43 responses)
  • A
    5% (2)
  • C
    93% (40)
  • D
    2% (1)

Why each option

The `logon script` parameter in `smb.conf` is declared within the `[global]` section to apply to all users authenticating against the Samba server.

A[homes]

The `[homes]` section is specifically for user home directories and related settings.

B[netlogon]

The `[netlogon]` section defines the share where logon scripts are stored, not where the `logon script` parameter itself is configured.

C[global]Correct

The `[global]` section of `smb.conf` is used for parameters that apply to the entire Samba server and all its services, including user authentication and logon processes. The `logon script` parameter, which specifies a script to run for Windows clients upon logon, is configured here to ensure it's applied universally.

D[profiles]

The `[profiles]` section is typically used for user roaming profiles configuration.

Concept tested: Samba logon script configuration

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

Topics

#Samba#smb.conf#Logon Scripts#Service Configuration

Community Discussion

No community discussion yet for this question.

Full LFCS Practice