[Xastir] /dev/ttyS0 permissions

Iain R. Learmonth iain at learmonth.me
Sat May 23 14:21:08 EDT 2015


Hi,

On Fri, May 22, 2015 at 09:23:22AM -0700, Curt Mills wrote:
> chmod 4755 /usr/local/bin/xastir

Noooooooooooooooooooooooooooooo!

Please do not do this. Ever. For any reason.

On Debian-based systems (including Ubuntu, Mint, etc):

    sudo adduser <USERNAME> dialout

You don't need to play with udev or anything like that. Just that one
command will give your user access to the serial ports.

I've also, in the latest version of the xastir package in Debian stretch,
added a debconf option. This will appear when you apt-get install xastir (or
upgrade from a version that didn't have it) and you have the option of also
allowing access to the Linux kernel's AX.25 from xastir as non-root. If you
enable this option you just have to do:

    sudo adduser <USERNAME> xastir-ax25

Running xastir as root is using a sledgehammer to crack a nut. It's not
necessary and it's dangerous.

Thanks,
Iain.

-- 
e: irl at fsfe.org            w: iain.learmonth.me
x: irl at jabber.fsfe.org     t: EPVPN 2105
c: 2M0STB                  g: IO87we
p: 1F72 607C 5FF2 CCD5 3F01 600D 56FF 9EA4 E984 6C49


More information about the Xastir mailing list