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.
Question
Options
- A[homes]
- B[netlogon]
- C[global]
- D[profiles]
How the community answered
(15 responses)- A7% (1)
- B7% (1)
- C87% (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.
The `[homes]` section is used for defining user home directories and is not the location for global logon script declarations.
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.
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.
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
Community Discussion
No community discussion yet for this question.