Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux - (APRS/SIMPLEUI) Binding sockets without root privledges #245

Open
kb1lqd opened this issue Jul 11, 2017 · 0 comments
Open

Linux - (APRS/SIMPLEUI) Binding sockets without root privledges #245

kb1lqd opened this issue Jul 11, 2017 · 0 comments

Comments

@kb1lqd
Copy link
Contributor

kb1lqd commented Jul 11, 2017

Summary

Previously for linux users it was not known (in general/documentation) how to start proxy without running sudo (or with root privileges). This is annoying at best and also makes automation scripts difficult. This issue ticket is to be used to explain how to open proxy connections to Faraday units without root privileges.

Problem Explanation

APRS and SimpleUI fail due to binding to in-use ports (telemetry/proxy) As a precaution most/all ports in use should be added to the current users permissions to bind. This can be accomplished by using authbind and setting specific user/port permissions.

(Example below uses my user account brent for reference only)

Install authbind:

  • sudo apt-get install authbind

Create filer for port 8001 for authbind to use:

  • sudo touch /etc/authbind/byport/8001

Change owner of new file to user brent (use your own user account as needed):

sudo chown brent:brent /etc/authbind/byport/8001

Change filer permissions:

sudo chown 755 /etc/authbind/byport/8001

SimpleUI will now be able to bind to port 8001 when run by user brent

References

This information should:

  • Be included in documentation
  • Be stated in relevant scripts/programs opening proxy to allow easier debugging.

Environment

Software

  • Faraday
    • Master
  • Linux
    • Ubuntu 16.04 LTS

Hardware

N/A

Supporting Information

An example of faraday-simpleui not opening properly due to socket binding permissions of the in-use user account.

image

After setting up user permissions the script below successfully opened the programs (including faraday-simpleui).

image

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants