Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
howto:linux_non-root [2015/09/22 15:52] – created deucehowto:linux_non-root [2018/01/14 13:04] – [See Also] Added tags digital man
Line 1: Line 1:
 ====== Linux Non-root ====== ====== Linux Non-root ======
  
-A simple way that will allow Linux Synchronet to run completely as non-root is to explicitly allow the binary to bind low ports using the setcap command.+===== setcap ===== 
 +''setcap'' may be used to allow Synchronet (''sbbs'') for Linux to run completely as **non-root** user by explicitly allowing the binary to bind low ports using the command-line:
  
 <code>sudo /sbin/setcap 'cap_net_bind_service=ep' /sbbs/exec/sbbs</code> <code>sudo /sbin/setcap 'cap_net_bind_service=ep' /sbbs/exec/sbbs</code>
  
-This must be ran on the binary itself (if /sbbs/exec/sbbs is a symlink, apply it to the target of the link instead).  This will need to be re-ran any time the binary is rebuilt.+This must be ran on the executable file itself (if ''/sbbs/exec/sbbs'' is a symlink, apply it to the target of the link instead). For example: 
 +  sudo setcap 'cap_net_bind_service=ep' ~/sbbs/src/sbbs3/gcc.linux.exe.release/sbbs
  
-A better alternative may be authbind:+This will need to be re-ran any time the binary is rebuilt (and remember to properly reference ''.debug'' or ''.release'').
  
-[TODO]+This requires that the [[https://packages.debian.org/stable/libcap2-dev|libcap2-dev]] package be installed prior to building ''sbbs'' (or perform a //clean// build of ''sbbs'' after installing ''libcap2-dev''). See [[install:nix:prerequisites]for details. 
 + 
 +===== authbind ===== 
 + 
 +An alternative may be to use authbind. 
 + 
 +A detailed example should be added here.
  
 ===== See Also ===== ===== See Also =====
   * [[:howto:|howto index]]   * [[:howto:|howto index]]
  
-{{tag>}}+{{tag>linux}}