--- title: "config security" slug: "config-security" updated: 2026-01-22T05:48:11Z published: 2026-01-22T05:48:11Z canonical: "docs.fmad.io/config-security" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.fmad.io/llms.txt > Use this file to discover all available pages before exploring further. # config security Commands for inspecting and changing system rules for authentication, SSH, and HTTP(S). --- ## show security Reports on the system’s access model in general terms. ```plaintext show security ``` Example output: ```plaintext [Wed Mar  5 03:54:51 2025] > show security [Wed Mar  5 03:54:51 2025] Authentication: BASIC [Wed Mar  5 03:54:51 2025] HTTP Access   : enable [Wed Mar  5 03:54:51 2025] Timeout SSH   : 0.000000min (idle) [Wed Mar  5 03:54:51 2025] Timeout WWW   : 0.000000min (session) [Wed Mar  5 03:54:51 2025] Default Role  : full ``` This command supports JSON output when used from the shell: ```plaintext fmadio@fmadio20v3-000:~$ fmadiocli --json "show security" fmad fmadlua Jan 01 2025 (/opt/fmadio/bin/fmadiolua --nocal /mnt/store0/develop/fmadiocli/fmadiocli.lua --json show security ) Disable cycle calibration [Thu Jan 22 05:43:50 2026] CmdLine [--json] [Thu Jan 22 05:43:50 2026] JSON [show security] {"IsJSON":true,"Auth":"PAM-LDAP","HTTPAccess":"enable","TimeoutSSH":0,"TimeoutWWW":0,"DefaultRole":"full"} done 0.019090Sec 0.000318Min ``` --- ## config security auth Change the authentication model used by the system. After running this command, the Nginx server will be restarted, which may take several seconds. ```plaintext config security auth ``` Example output: ```plaintext [Fri Jan 24 06:13:09 2025] > config security auth OAUTH [Fri Jan 24 06:13:11 2025] Authentication [BASIC] -> [OAUTH] wait for respawn 0/120 wait for respawn 1/120 wait for respawn 2/120 wait for respawn 3/120 wait for respawn 4/120 wait for respawn 5/120 process respawned [Fri Jan 24 06:13:17 2025] rebooting the system may be required ``` --- ## config security http Set whether the system allows access over plain HTTP (`true`) or not (`false`). Note that if this command succeeds, the Nginx server gets restarted, which may take from 5 seconds to 2 minutes. Fmad Engineering officially recommends that, if not using “basic” authentication, this be disabled, so that passwords are not sent in cleartext. ```plaintext config security http ``` Example output: ```plaintext [Fri Jan 24 05:46:21 2025] > config security http false [Fri Jan 24 05:46:21 2025] HTTP Access [enable] -> [false] [Fri Jan 24 05:46:21 2025] please wait 60sec for web access to restart [Fri Jan 24 05:47:40 2025] > config security http true [Fri Jan 24 05:47:41 2025] HTTP Access [disable] -> [true] [Fri Jan 24 05:47:41 2025] please wait 60sec for web access to restart ``` --- ## config security timeoutSSH Set the time-out period after which connected SSH clients are forcibly disconnected from the system. In specific terms, this alters the `TMOUT` environment variable. ```plaintext config security timeoutSSH <#s|#m|#h|disable> ``` Example output: ```plaintext [Fri Jan 24 07:29:35 2025] > config security timeoutSSH 2h [Fri Jan 24 07:29:35 2025] SSH Timeout [0] -> [7200000000000] [Fri Jan 24 07:29:35 2025] please reboot for new setting to take effect [Fri Jan 24 07:29:37 2025] > config security timeoutSSH disable [Fri Jan 24 07:29:37 2025] SSH Timeout [7200000000000] -> [0] [Fri Jan 24 07:29:37 2025] please reboot for new setting to take effect ``` --- ## config security timeoutWWW Set the time-out period after which a logged-in web user has their session forcibly terminated, requiring them to log in again. ```plaintext config security timeoutWWW <#s|#m|#h|disable> ``` Example output: ```plaintext [Fri Jan 24 07:28:39 2025] > config security timeoutWWW 1h [Fri Jan 24 07:28:40 2025] WWW Timeout [0] -> [3600000000000] [Fri Jan 24 07:28:40 2025] please reboot for new setting to take effect [Fri Jan 24 07:28:42 2025] > config security timeoutWWW disable [Fri Jan 24 07:28:42 2025] WWW Timeout [3600000000000] -> [0] [Fri Jan 24 07:28:42 2025] please reboot for new setting to take effect ``` --- ## config security default_role Overrides the users www permission level. The following table lists the settings | value | desc | | --- | --- | | full | Sets all users to have full WWW permissions | | user | Sets all users to have user WWW permissions | | none | Defer the permissions to each user, via the userlist commands | ```plaintext config security default_role ``` Example output: ```plaintext [Fri Jan 24 05:44:06 2025] > config security default_role user [Fri Jan 24 05:44:06 2025] Default role updated successfully [Fri Jan 24 05:44:14 2025] > config security default_role full [Fri Jan 24 05:44:14 2025] Default role updated successfully ```