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

Question about permissions #1297

Closed
Augusto182 opened this issue Aug 10, 2017 · 2 comments
Closed

Question about permissions #1297

Augusto182 opened this issue Aug 10, 2017 · 2 comments

Comments

@Augusto182
Copy link

  • Serial Port: 5.0.0-beta7

  • NodeJS Version v8.3.0:

  • Operating System Ubuntu 14.04 Hardware x86_64:

  • Have you checked the right version of the api docs?: YES

  • Are you having trouble installing and you checked the Installation Special Cases docs? YES

  • Are you using Electron and have you checked the Electron Docs?: YES

Summary of Problem

when I run: electron .
app runs but serialport give and error about no having permissions to open port.

no error appear when I run: sudo electron .
app works as expected.

there is a way to ask the user for the password within the app?

I know, this is not related with serialport itself, but your help is appreciate.

@reconbot
Copy link
Member

https://askubuntu.com/questions/112568/how-do-i-allow-a-non-default-user-to-use-serial-device-ttyusb0

This would have the user added to the right group to use the port without sudo. Maybe put it in your readme?

I also googled the issue and found https://www.npmjs.com/package/electron-sudo which maybe could be used to add the user to the group. I am not very familiar with electron but you can ask them for assistance.

@Augusto182
Copy link
Author

Thanks for your directions.

@lock lock bot locked and limited conversation to collaborators Feb 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants