Manage Samba File Server

SolidGroundUX DocumentationSolidGroundUX
NL

Prepare, validate, and inspect the Samba file-server service

Source: target-root/usr/local/libexec/solidgroundux/manage-samba-file-server.sh

Prepare, validate, and inspect the Samba file-server service

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_load_ad_managementLoad shared Active Directory discovery APIs.——
_dryrun_completeReport the dry-run result without executing the requested host change.——
_smb_refresh_storage_pathsRefresh Samba storage paths using the saved storage configuration.——
_smb_require_storageRequire the configured Samba storage mount to be available.——
_smb_list_managed_shares_rawEnumerate managed Samba shares from the current Samba configuration.——
_smb_ask_selectionKeep selection mechanics local while the manager owns the surrounding UI layout.- --label TEXT—
_smb_auth_modeReport Samba's active authentication mode independently of the Linux host's—Writes "ad" when Samba security is ADS, otherwise "standalone".
_smb_validate_hostname_dnsConfirm the DNS state required for clients to reach the Samba server by hostname.——
_smb_write_auth_configKeep share definitions intact while replacing only SolidGroundUX-owned global- $1 Authentication mode: ad or standalone.—
_smb_enable_sssd_samba_password_syncEnable SSSD's Samba machine-account password synchronization for the joined domain.- $1 Joined AD realm.—
_smb_establish_ads_trustPopulate or repair Samba's own machine-account trust after the AD-client module has- $1 Joined Active Directory realm.—
_smb_configure_authenticationConfigure Samba for the authentication model already established on the host.——
_smb_install_packagesInstall packages needed for the selected Samba server role.——
_smb_validate_storageValidate the configured storage mount before Samba provisioning.——
_smb_prepare_share_rootPrepare the configured Samba share root with required permissions.——
_smb_start_serviceStart or enable the Samba file-server service through the service manager.——
_smb_prepare_file_serverRun the ordered Samba file-server preparation workflow.——
_smb_validateValidate Samba file-server configuration and runtime state.——
_smb_statusDisplay Samba package, service and configuration status.——
_run_actionDispatch the requested management action to its implementation.- $1: Management action to execute.—

Description

Implements persistent Samba file-server management actions exposed by the 30-samba-file-server Management Console module. Share lifecycle/share-level access remain in manage-samba-shares.sh; directory lifecycle/access remain in manage-samba-directories.sh.

Usage

Run the executable from its shell command (or installed wrapper):

manage-samba-file-server --action prepare
manage-samba-file-server --dryrun --action prepare
manage-samba-file-server --action validate

Script-specific options:

  • --action NAME, -a: Management action (supported actions: prepare, install, authentication, storage, share-root, service, validate, status).