Skip to content

Commit

Permalink
Re-numbered SSXX for sub system
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearran committed Sep 4, 2024
1 parent fd725e7 commit cad260a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Armbian Configuration Utility
Updated: Tue Sep 3 09:22:06 PM EDT 2024
Updated: Tue Sep 3 09:45:40 PM EDT 2024

Utility for configuring your board, adjusting services, and installing applications. It comes with Armbian by default.

Expand All @@ -17,8 +17,8 @@ sudo armbian-config
- **S05** - Remove Linux headers
- **S06** - Install to internal storage
- **S07** - Manage SSH login options
- **S30** - Change shell system wide to BASH
- **S31** - Change shell system wide to ZSH
- **S08** - Change shell system wide to BASH
- **S09** - Change shell system wide to ZSH


- ## **Network**
Expand Down Expand Up @@ -94,8 +94,8 @@ Usage: armbian-configng [option] [arguments]
--cli S05 - Remove Linux headers
--cli S06 - Install to internal storage
--cli S07 - Manage SSH login options
--cli S30 - Change shell system wide to BASH
--cli S31 - Change shell system wide to ZSH
--cli S08 - Change shell system wide to BASH
--cli S09 - Change shell system wide to ZSH
--cli N00 - Install Bluetooth support
--cli N01 - Remove Bluetooth support
--cli N02 - Bluetooth Discover
Expand Down Expand Up @@ -222,7 +222,7 @@ Jobs:
No commands available
~~~

### S30
### S08

Change shell system wide to BASH

Expand All @@ -237,7 +237,7 @@ update_skel
awk -F'[/:]' '{if ($3 >= 1000 && $3 != 65534 || $3 == 0) print $1}' /etc/passwd | xargs -L1 chsh -s $(grep /bash$ /etc/shells | tail -1)
~~~

### S31
### S09

Change shell system wide to ZSH

Expand Down
24 changes: 12 additions & 12 deletions lib/armbian-configng/config.ng.jobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"description": "Manage SSH login options",
"sub": [
{
"id": "S08",
"id": "SS01",
"description": "Disable root login",
"command": [
"sed -i \"s|^#\\?PermitRootLogin.*|PermitRootLogin no|\" /etc/ssh/sshd_config",
Expand All @@ -94,7 +94,7 @@
"condition": "grep -q '^PermitRootLogin yes' /etc/ssh/sshd_config"
},
{
"id": "S09",
"id": "SS02",
"description": "Enable root login",
"command": [
"sed -i \"s/^#\\?PermitRootLogin.*/PermitRootLogin yes/\" /etc/ssh/sshd_config" ,
Expand All @@ -107,7 +107,7 @@
"condition": "grep -q '^PermitRootLogin no' /etc/ssh/sshd_config"
},
{
"id": "S10",
"id": "SS03",
"description": "Disable password login",
"command": [
"sed -i \"s/^#\\?PasswordAuthentication.*/PasswordAuthentication no/\" /etc/ssh/sshd_config" ,
Expand All @@ -120,7 +120,7 @@
"condition": "grep -q 'PasswordAuthentication yes' /etc/ssh/sshd_config"
},
{
"id": "S11",
"id": "SS04",
"description": "Enable password login",
"command": [
"sed -i \"s/^#\\?PasswordAuthentication.*/PasswordAuthentication yes/\" /etc/ssh/sshd_config" ,
Expand All @@ -133,7 +133,7 @@
"condition": "grep -q 'PasswordAuthentication no' /etc/ssh/sshd_config"
},
{
"id": "S12",
"id": "SS05",
"description": "Disable Public key authentication login",
"command": [
"sed -i \"s/^#\\?PubkeyAuthentication.*/PubkeyAuthentication no/\" /etc/ssh/sshd_config" ,
Expand All @@ -146,7 +146,7 @@
"condition": "grep -q 'PubkeyAuthentication yes' /etc/ssh/sshd_config"
},
{
"id": "S13",
"id": "SS06",
"description": "Enable Public key authentication login",
"command": [
"sed -i \"s/^#\\?PubkeyAuthentication.*/PubkeyAuthentication yes/\" /etc/ssh/sshd_config" ,
Expand All @@ -159,7 +159,7 @@
"condition": "grep -q 'PubkeyAuthentication no' /etc/ssh/sshd_config"
},
{
"id": "S14",
"id": "SS07",
"description": "Disable OTP authentication",
"command": [
"clear",
Expand All @@ -175,7 +175,7 @@
"condition": "grep -q 'ChallengeResponseAuthentication yes' /etc/ssh/sshd_config"
},
{
"id": "S15",
"id": "SS08",
"description": "Enable OTP authentication",
"command": [
"check_if_installed libpam-google-authenticator || debconf-apt-progress -- apt-get -y install libpam-google-authenticator",
Expand All @@ -192,7 +192,7 @@
"condition": "! check_if_installed libpam-google-authenticator || ! check_if_installed qrencode || grep -q '^ChallengeResponseAuthentication no' /etc/ssh/sshd_config || ! grep -q 'ChallengeResponseAuthentication' /etc/ssh/sshd_config"
},
{
"id": "S16",
"id": "SS09",
"description": "Generate new OTP authentication QR code",
"command": [
"qr_code generate"
Expand All @@ -204,7 +204,7 @@
"condition": "grep -q '^ChallengeResponseAuthentication yes' /etc/ssh/sshd_config"
},
{
"id": "S17",
"id": "SS10",
"description": "Show OTP authentication QR code",
"command": ["qr_code"],
"status": "Active",
Expand All @@ -217,7 +217,7 @@
},

{
"id": "S30",
"id": "S08",
"description": "Change shell system wide to BASH",
"command": [
"export BASHLOCATION=$(grep /bash$ /etc/shells | tail -1)",
Expand All @@ -234,7 +234,7 @@
"condition": "[[ $(cat /etc/passwd | grep \"^root:\" | rev | cut -d\":\" -f1 | cut -d\"/\" -f1| rev) == \"zsh\" ]]"
},
{
"id": "S31",
"id": "S09",
"description": "Change shell system wide to ZSH",
"command": [
"export ZSHLOCATION=$(grep /zsh$ /etc/shells | tail -1)",
Expand Down

0 comments on commit cad260a

Please sign in to comment.