Read/Write to a Serial Port Without Root?
The right to access a serial port is determined by the permissions of the device file (e.g. /dev/ttyS0
). So all you need to do is either arrange for the device to be owned by you, or (better) put yourself in the group that owns the device, or (if Fedora supports it, which I think it does) arrange for the device to belong to the user who's logged in on the console.
For example, on my system (not Fedora), /dev/ttyS0
is owned by the user root
and the group dialout
, so to be able to acesss the serial device, I would add myself to the dialout
group:
usermod -a -G dialout MY_USER_NAME