mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-18 23:13:20 +01:00
640 for pubkey and empty pillar
This commit is contained in:
@@ -300,7 +300,7 @@ def _setup_ssh_keys():
|
|||||||
|
|
||||||
# Set proper permissions
|
# Set proper permissions
|
||||||
os.chmod(key_path, 0o600)
|
os.chmod(key_path, 0o600)
|
||||||
os.chmod(pub_key_path, 0o644)
|
os.chmod(pub_key_path, 0o640)
|
||||||
|
|
||||||
log.info("SETUP_KEYS: SSH keys generated successfully")
|
log.info("SETUP_KEYS: SSH keys generated successfully")
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ def run():
|
|||||||
# Set ownership to socore:socore
|
# Set ownership to socore:socore
|
||||||
os.chown(full_path, socore_uid, socore_gid)
|
os.chown(full_path, socore_uid, socore_gid)
|
||||||
# Set mode to 644 (rw-r--r--)
|
# Set mode to 644 (rw-r--r--)
|
||||||
os.chmod(full_path, 0o644)
|
os.chmod(full_path, 0o640)
|
||||||
logging.error("createEmptyPillar reactor: created %s with socore:socore ownership and mode 644" % f)
|
logging.error("createEmptyPillar reactor: created %s with socore:socore ownership and mode 644" % f)
|
||||||
|
|
||||||
except (KeyError, OSError) as e:
|
except (KeyError, OSError) as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user