1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-23 00:25:18 +00:00

cli: Fix group ownership for authority setup

This commit is contained in:
Lauri Võsandi 2015-12-24 13:58:24 +00:00
parent 8864af6072
commit 1b50b8a371

View File

@ -628,6 +628,9 @@ def certidude_setup_authority(parent, country, state, locality, organization, or
ca.sign(key, "sha256") ca.sign(key, "sha256")
_, _, uid, gid, gecos, root, shell = pwd.getpwnam("certidude")
os.setegid(gid)
os.umask(0o027) os.umask(0o027)
if not os.path.exists(directory): if not os.path.exists(directory):
os.makedirs(directory) os.makedirs(directory)