From 552649792322e5c3f33460dcccfbdd52725c10a4 Mon Sep 17 00:00:00 2001 From: "kebler.net" Date: Sat, 22 Jan 2022 14:28:55 -0800 Subject: [PATCH] fix: ssh permission function now turns of $HOME group write --- all/function/ssh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/all/function/ssh b/all/function/ssh index 923108a..5f09839 100644 --- a/all/function/ssh +++ b/all/function/ssh @@ -1,4 +1,7 @@ +#!/bin/bash ssh_dir_permissions() { + sudo chmod -R g-w $HOME + echo warning turned off group write for $HOME as this can cause ssh failure sudo chown -R $USER:$USER $HOME/.ssh sudo chmod 00700 $HOME/.ssh sudo chmod 600 $HOME/.ssh/authorized_keys