hparra / ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports
http://rubygems.org/gems/serialport
GNU General Public License v2.0
246 stars 58 forks source link

Permissions Issue #36

Closed adamyonk closed 11 years ago

adamyonk commented 12 years ago

Is there any way to run this as root from inside IRB or Pry? I'm trying to do some testing in there, but I keep getting permissions issues when I try to access anything in /dev/.

ghost commented 11 years ago

then you'll need to look up how to access the serial port for your OS as this problem would exist whether you used this gem or not.

ghost commented 11 years ago

an example to clarify: i had to put myself in the dialout group to access the serialport on my linux distro.

I think this could be closed now?

adamyonk commented 11 years ago

Sure. May want to note something about that in the readme.

On Oct 27, 2013, at 2:27 AM, Johnny Robeson notifications@github.com wrote:

an example to clarify: i had to put myself in the dialout group to access the serialport on my linux distro.

I think this could be closed now?

— Reply to this email directly or view it on GitHub.

hparra commented 11 years ago

@adamyonk That's a tough one, as this gem assumes you know quite a bit about serial ports, and since we support various OSes I don't think we should take on the responsibility of making notes like this in the repo, but I do invite you to make a note in the wiki.

@jrobeson Thank you for your triage. It has been helpful.