fucking permissions what the fuck

master
cynic 3 years ago
parent 5ab04c910a
commit 812fd4e168
  1. 1
      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.

Loading…
Cancel
Save