Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| howto:linux_non-root [2018/01/14 13:04] – [See Also] Added tags digital man | howto:linux_non-root [2023/03/09 10:40] (current) – add link to systemd unit file digital man | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Linux Non-root ====== | + | ====== |
| + | |||
| + | ===== systemd ===== | ||
| + | If you're running any kind of recent (last 2yrs+) systemd, just put this line in the '' | ||
| + | '' | ||
| ===== setcap ===== | ===== setcap ===== | ||
| - | '' | + | '' |
| - | < | + | $ sudo / |
| - | This must be ran on the executable file itself (if '' | + | This will need to be re-ran any time the binary is rebuilt and can be automated by adding |
| - | sudo setcap ' | + | $ make RELEASE=1 setcap symlinks |
| + | |||
| + | To confirm | ||
| + | | ||
| + | | ||
| + | ===== authbind ===== | ||
| - | This will need to be re-ran any time the binary is rebuilt (and remember | + | An alternative may be to use authbind. |
| - | This requires that the [[https://packages.debian.org/stable/libcap2-dev|libcap2-dev]] package be installed prior to building '' | + | Install authbind using your favorite package manager for your Linux Distribution. |
| + | |||
| + | Configure it to grant access to the relevant ports, e.g. to allow 80, 21, 23,25, 110, etc 443 from all users and groups: | ||
| + | |||
| + | sudo touch /etc/authbind/ | ||
| + | |||
| + | sudo touch / | ||
| + | |||
| + | and so forth for all ports you are using below 1025 ... | ||
| + | |||
| + | sudo chmod 777 /etc/authbind/ | ||
| + | |||
| + | sudo chmod 777 / | ||
| + | |||
| + | and so forth for all ports you are using below 1025 | ||
| + | |||
| + | Now execute your command via authbind (optionally specifying | ||
| + | |||
| + | sudo authbind --deep | ||
| - | ===== authbind ===== | ||
| - | An alternative may be to use authbind. | ||
| - | A detailed example should be added here. | ||
| ===== See Also ===== | ===== See Also ===== | ||