Re: permission woes with systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux