nerdexam
Linux_Foundation

LFCS · Question #122

Which of the following statements are true of the Samba Web Administration Tool? (Choose THREE correct answers)

The correct answer is A. SWAT will completely replace your existing smb.conf file. C. No comments exist in a SWAT-generated smb.conf file. D. SWAT will not write a parameter to smb.conf if it is set to the default setting. The Samba Web Administration Tool (SWAT) rewrites the entire smb.conf file, removes all comments, and only writes parameters that differ from their default settings.

Submitted by anjalisingh· Apr 18, 2026Service Configuration

Question

Which of the following statements are true of the Samba Web Administration Tool? (Choose THREE correct answers)

Options

  • ASWAT will completely replace your existing smb.conf file.
  • BBy default, SWAT runs with SSL over HTTPS.
  • CNo comments exist in a SWAT-generated smb.conf file.
  • DSWAT will not write a parameter to smb.conf if it is set to the default setting.
  • EFor security purposes, Microsoft Windows user passwords cannot be changed via the SWAT

How the community answered

(21 responses)
  • A
    90% (19)
  • B
    5% (1)
  • E
    5% (1)

Why each option

The Samba Web Administration Tool (SWAT) rewrites the entire `smb.conf` file, removes all comments, and only writes parameters that differ from their default settings.

ASWAT will completely replace your existing smb.conf file.Correct

SWAT, when saving configuration changes, rewrites the entire `smb.conf` file from scratch, discarding any existing structure, comments, or manual formatting in the process.

BBy default, SWAT runs with SSL over HTTPS.

By default, SWAT typically runs unencrypted over HTTP, and HTTPS/SSL support requires additional configuration, often through a web server proxy.

CNo comments exist in a SWAT-generated smb.conf file.Correct

When SWAT generates or saves the `smb.conf` file, it omits all comments, resulting in a configuration file that is often cleaner but less human-readable.

DSWAT will not write a parameter to smb.conf if it is set to the default setting.Correct

SWAT's design is to only write parameters to the `smb.conf` file if their configured value differs from Samba's default setting, which helps to minimize file size and avoid redundancy.

EFor security purposes, Microsoft Windows user passwords cannot be changed via the SWAT

SWAT provides functionalities to manage Samba users, including changing passwords, which are essential for administering user accounts in a domain environment.

Concept tested: Samba SWAT features and behavior

Source: https://www.samba.org/samba/docs/current/manpages-3/swat.8.html

Topics

#Samba#SWAT#Configuration File#Web Administration

Community Discussion

No community discussion yet for this question.

Full LFCS Practice