ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. mint
    Log in to post
    • All categories
    • scottalanmillerS

      Bind Linux Process to Well Known Web Ports When Not Root

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux centos rhel ubuntu fedora arch suse mint
      2
      2 Votes
      2 Posts
      721 Views
      1

      @scottalanmiller said in Bind Linux Process to Well Known Web Ports When Not Root:

      If you have ever tried to run a user space program on Linux with a port below 1024 you know that this is a security problem and you are not allowed to do so. There is a simple fix for this, but it is not well known.

      Once you know the binary that you will be using to open the low number (well known) port you can use this command to grant it permission to use these ports without otherwise compromising security.

      setcap cap_net_bind_service+ep /my/binary/file

      Now you can run your application. This is most commonly used for user space web applications that want to use port 80 or 443 without requiring that you run a reverse proxy in front of them.

      Good to know!

      I found this as an example of how to use it and also commands to remove the permission:
      https://cwiki.apache.org/confluence/display/HTTPD/NonRootPortBinding

      The setcap utility seems to be available in the libcap2-bin package on debian distros.

      I haven't checked if it's installed by default.

    • mlnewsM

      Linux Mint 17.3 and Linux Mint 18 are Coming

      Watching Ignoring Scheduled Pinned Locked Moved News linux desktop linux mint 17.3 mint 18 mint softopedia cinnamon 3.0 cinnamon
      1
      0 Votes
      1 Posts
      1k Views
      No one has replied
    • mlnewsM

      Is Krita the Best Photoshop Alternative on Linux?

      Watching Ignoring Scheduled Pinned Locked Moved News linux ubuntu mint linux desktop kde krita photoshop gimp
      7
      1 Votes
      7 Posts
      4k Views
      mlnewsM

    • scottalanmillerS

      Mint 17.1: Cinnamon Crashes When Connecting via XRDP

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion mint cinnamon xrdp vnc4server linux desktop linux mint 17.1 linux
      1
      0 Votes
      1 Posts
      3k Views
      No one has replied
    • Reid CooperR

      Big Cinnamon 2.4 Update Coming in Mint 17.1

      Watching Ignoring Scheduled Pinned Locked Moved News mint cinnamon mint 17.1 cinnamon 2.4 linux desktop linux
      1
      2 Votes
      1 Posts
      1k Views
      No one has replied
    • 1 / 1