Skip to content

Commit 4e64950

Browse files
committed
Fix sshtun-user configure crash: create /run/sshd if missing
Some Ubuntu servers don't have /run/sshd, causing sshtun-user configure to fail with "Missing privilege separation directory: /run/sshd".
1 parent a2e5226 commit 4e64950

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dnstm-setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,7 @@ do_manage_users() {
17561756

17571757
# Run initial configure
17581758
print_info "Applying SSH security configuration..."
1759+
mkdir -p /run/sshd 2>/dev/null || true
17591760
if timeout 30 sshtun-user configure </dev/null 2>&1; then
17601761
print_ok "SSH configuration applied"
17611762
else
@@ -2798,6 +2799,7 @@ step_ssh_user() {
27982799

27992800
# Configure SSH (only needed once)
28002801
print_info "Applying SSH security configuration..."
2802+
mkdir -p /run/sshd 2>/dev/null || true
28012803
local configure_output
28022804
configure_output=$(timeout 30 sshtun-user configure </dev/null 2>&1) || true
28032805
if echo "$configure_output" | grep -qi "already"; then

0 commit comments

Comments
 (0)