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/01/14 12:51] – [Linux Non-root] More details and examples. digital man | howto:linux_non-root [2019/01/07 13:37] – [authbind] Mortifis | ||
---|---|---|---|
Line 7: | Line 7: | ||
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 (and remember to properly reference '' | This will need to be re-ran any time the binary is rebuilt (and remember to properly reference '' | ||
Line 15: | Line 15: | ||
===== authbind ===== | ===== authbind ===== | ||
- | An alternative may be to use authbind. | + | 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 / | ||
+ | |||
+ | sudo touch / | ||
+ | |||
+ | and so forth for all ports you are using below 1025 ... | ||
+ | |||
+ | sudo chmod 777 / | ||
+ | |||
+ | sudo chmod 777 / | ||
+ | |||
+ | and so forth for all ports you are using below 1025 | ||
+ | |||
+ | Now execute your command via authbind (optionally specifying --deep or other arguments, see the man page): | ||
+ | |||
+ | sudo authbind --deep / | ||
+ | |||
- | A detailed example should be added here. | ||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: | ||
- | {{tag>}} | + | {{tag>linux}} |