Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Why does everything run as root?

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 4 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Taiidan
      last edited by

      Is normal that all the processes on my system are running as root? (VPN, webgui, php, etc) It seems like a bad idea. Thanks for your replies!

      1 Reply Last reply Reply Quote 0
      • H
        Harvy66
        last edited by

        I don't know Unix systems very well to argue if there isn't a better way, but the basic issue is in order to change system settings and install packages and otherwise control every aspect of the system, it needs to run as root. It is possible that factoring the code into other smaller services that only do one thing may be able to have different users per service with strict permissions.

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          Things that can be chrooted and downgraded (like dhcpd) are. Those that can't aren't.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            It is something we are working to address over time. It's not something that sits well with any of us, but given how everything currently operates and required privileges for specific actions and daemons, it is a problem which has resisted solving.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • T
              Taiidan
              last edited by

              @jimp:

              It is something we are working to address over time. It's not something that sits well with any of us, but given how everything currently operates and required privileges for specific actions and daemons, it is a problem which has resisted solving.

              Ah thanks both of you (didnt know I could only give one thanks per thread)

              I don't know anything about *BSD, but is it possible to implement MAC like with SELinux?
              Something cool too would be implementing an IOMMU based security measure to segment hardware network interfaces thus for instance someone figures out how to exploit the WAN nic they're stuck on it and can't transition to any other NIC or get root via DMA.

              1 Reply Last reply Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                Probably should have gone to Jim so I'll do that. ;)

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.