From 812fd4e1685e9bf92ef885813188712170fe39a5 Mon Sep 17 00:00:00 2001 From: cynic Date: Fri, 18 Nov 2022 15:08:55 -0500 Subject: [PATCH] fucking permissions what the fuck --- tools/add_users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/add_users.py b/tools/add_users.py index 7445e46..d217a2a 100644 --- a/tools/add_users.py +++ b/tools/add_users.py @@ -13,6 +13,7 @@ def add_user(u, p): subprocess.run(["useradd", "-m", "-p", p, u]) # adding a new user resets the permission table... subprocess.run(["setfacl", "-m", "u:cathedral:r", "/etc/shadow"]) + subprocess.run(["setfacl", "-R", "-m", "user:cathedral:rx", f"/home/{u}"]) """ e.g.