Synchronet v3.18b-Win32 (install) has been released (Sept-2020).

Synchronet v3.19a, now under development, requires libarchive-dev to build successfully.

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

Both sides previous revision Previous revision
Next revision
Previous revision
howto:linux_non-root [2020/03/23 19:16]
digital man [authbind] beautify
howto:linux_non-root [2021/01/01 13:46] (current)
digital man [setcap] <Retros> btw.. if you're running any kind of recent (last 2yrs+) systemd, you don't need to mess with any setcap stuff, just put this line in your service file in [services]: AmbientCapabilities=CAP_NET_BIND_SERVICE
Line 1: Line 1:
 ====== Start Synchronet on Linux as a Non-root user ====== ====== Start Synchronet on Linux as a Non-root user ======
 +
 +===== systemd =====
 +If you're running any kind of recent (last 2yrs+) systemd, just put this line in the ''​[Service]''​ section of your ''​sbbs.service''​ file:\\
 +''​**AmbientCapabilities=CAP_NET_BIND_SERVICE**''​
  
 ===== setcap ===== ===== setcap =====
 ''​setcap''​ may be used to allow Synchronet (''​sbbs''​) for Linux to run completely as a **non-root** user by explicitly allowing the binary to bind low ports using the command-line:​ ''​setcap''​ may be used to allow Synchronet (''​sbbs''​) for Linux to run completely as a **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>​ +  $ sudo /​sbin/​setcap '​cap_net_bind_service=+ep' ​`realpath ​/​sbbs/​exec/​sbbs`
- +
-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.*/​sbbs+
  
 This will need to be re-ran any time the binary is rebuilt and can be automated by adding the ''​setcap''​ target to your ''​make''​ command-line executed in ''​src/​sbbs3'':​ This will need to be re-ran any time the binary is rebuilt and can be automated by adding the ''​setcap''​ target to your ''​make''​ command-line executed in ''​src/​sbbs3'':​
-  make RELEASE=1 setcap symlinks+  ​make RELEASE=1 setcap symlinks 
 +   
 +To confirm the bind capabilities were set successfully,​ run: 
 +  $ sudo getcap `realpath /​sbbs/​exec/​sbbs` 
 +  /​path/​to/​sbbs = cap_net_bind_service+ep
 ===== authbind ===== ===== authbind =====
  

In Other Languages