Hi everyone,
I’m currently setting up Asterisk 22 on Ubuntu 24 and have a question regarding file ownership and permissions for /etc/asterisk.
From what I can see, the official documentation does not explicitly mention changing the ownership of this directory. However, I’ve come across discussions suggesting that Asterisk needs access to /etc/asterisk, which raised some questions for me.
I’d like to better understand the correct approach from a security perspective, especially following the principle of least privilege.
-
What is the recommended ownership and permission setup for
/etc/asterisk? -
Does Asterisk require write access to this directory, or is read-only access sufficient in most cases?
-
Would a setup like:
- chown -R root:asterisk /etc/asterisk & chmod -R 750 /etc/asterisk
- be more appropriate than assigning full ownership to the
asteriskuser like “sudo chown -R asterisk:asterisk /etc/asterisk”?
My goal is to configure the system with the minimum required privileges while ensuring Asterisk functions properly.
I’d really appreciate any guidance or best practices from from more experienced users.
Thanks in advance!