Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howto:linux_non-root [2018/03/03 23:51] – [setcap] someone missed the .x64 nelgin | howto:linux_non-root [2020/03/23 18:53] – [setcap] Does not require libcap-dev2 digital man | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== setcap ===== | ===== setcap ===== | ||
- | '' | + | '' |
- | < | + | < |
This must be ran on the executable file itself (if ''/ | This must be ran on the executable file itself (if ''/ | ||
- | sudo setcap ' | + | sudo setcap ' |
- | This will need to be re-ran any time the binary is rebuilt | + | This will need to be re-ran any time the binary is rebuilt and can be automated by adding the '' |
+ | make RELEASE=1 setcap symlinks | ||
+ | ===== authbind ===== | ||
- | This requires that the [[https://packages.debian.org/stable/libcap2-dev|libcap2-dev]] package be installed prior to building '' | + | An alternative may be to use authbind. |
+ | |||
+ | 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 ===== |