Samba File Server

SolidGroundUX DocumentationSolidGroundUX
NL

Register and orchestrate Samba file-server management actions

Source: target-root/usr/local/libexec/solidgroundux/console-modules/30-samba-file-server.sh

Register and orchestrate Samba file-server management actions

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_smb_run_project_scriptRun a management executable owned by this project.- $1: Name of the selected item.—
_smb_run_server_actionForward a Samba Server action to its management executable.- $1: Management action to execute.—
_smb_step_install_packagesRun the Samba package-installation step.——
_smb_step_configure_authenticationRun the Samba authentication configuration step.——
_smb_step_validate_storageRun the Samba storage validation step.——
_smb_step_prepare_share_rootPrepare the Samba share-root directory.——
_smb_step_start_serviceDispatch the Samba service startup step to the standalone manager.——
_smb_prepare_file_serverExecute the same registered child actions used by menu items 2-6 so composite——
_smb_validateDispatch Samba validation to the standalone manager.——
_smb_statusDispatch Samba status inspection to the standalone manager.——
_smb_manage_sharesLaunch the Samba share-management interface.——
_smb_manage_directoriesLaunch the Samba directory-management interface.——
_smb_manage_usersLaunch the Samba user-management interface.——

Description

Registers Samba file-server, share-management, user/group-management, and directory- management actions with the Management Console. Persistent server-management functionality is implemented by manage-samba-file-server.sh; share lifecycle/access is implemented by manage-samba-shares.sh; standalone Samba users/groups are managed by manage-samba-users.sh; directory lifecycle/access is implemented by manage-samba-directories.sh.

Module validation contract

Return codes: 0 = Passed 1 = Failed 2 = Warning 3 = Skipped / not applicable

Every validator sets SGND_MODULE_VALIDATION_MESSAGE to a concise result summary. Detailed diagnostic output may be written by the validator or delegated action.

Console registration

Provides host-level Samba file-server preparation, validation, status, and managed-share administration. Storage is consumed from the configured SolidGroundUX storage root rather than being independently provisioned here.

Samba File Server

! Prepare Samba file server

Run the complete Samba file-server preparation sequence. Handler: _smb_prepare_file_server

! Install Samba prerequisites

Install Samba file-server packages and command-line utilities. Handler: _smb_step_install_packages

! Configure Samba authentication

Detect host AD membership and configure Samba authentication to match. Handler: _smb_step_configure_authentication

! Validate storage

Require the configured SolidGroundUX storage mount. Handler: _smb_step_validate_storage

! Prepare share root

Create and validate the configured Samba share root. Handler: _smb_step_prepare_share_root

! Start Samba service

Validate the configuration and start smbd.service. Handler: _smb_step_start_service

! Validate Samba file server

Validate tools, configuration, service, storage, and managed shares. Handler: _smb_validate

! Show Samba file-server status

Show service, configuration, storage, and share-root status. Handler: _smb_status

Samba Shares

! Manage shares

Create, remove, validate, and manage share-level access. Handler: _smb_manage_shares Script: /usr/local/libexec/solidgroundux/manage-samba-shares.sh

! Manage directories

Create, remove, inspect, and manage directory-level user/group access. Handler: _smb_manage_directories Script: /usr/local/libexec/solidgroundux/manage-samba-directories.sh

! Manage users and groups

Manage standalone Samba users, local access groups, and group memberships. Handler: _smb_manage_users Script: /usr/local/libexec/solidgroundux/manage-samba-users.sh