On 1/23/20 12:59 PM, sean darcy wrote:
On 1/22/20 3:47 PM, Samuel Sieb wrote:
On 1/22/20 12:00 PM, sean darcy wrote:
On 1/22/20 1:01 AM, Samuel Sieb wrote:
restorecon -rv /etc/asterisk"
Thanks. That did it.
I'll never understand selinux.
My guess is that you copied or more likely moved files into there from
somewhere else. Is that right?
Generally, if you get a permission error even though the file
ownership is correct, check for an selinux context being wrong.
_______________________________________________
OK, but why would it work if I started it directly, and fail from
systemd, set for the same user?
When it's started from systemd, the selinux context is more restricted
by design. When you run it manually, it runs in the unconfined_t
context, but when run from systemd, it ends up as asterisk_t. You can
see that by adding the "Z" option to "ps".
# ps auxwZ | grep asterisk
system_u:system_r:asterisk_t:s0 asterisk 966 0.4 0.2 2167796 62056 ?
Ssl 2019 779:32 /usr/sbin/asterisk -f -C
/etc/asterisk/asterisk.conf
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx