Hi all,

I'm the maintainer for the Arduino IDE in AUR, which manages the
Arduino board (see arduino.cc). It needs rxtx to write to it, and uses
lock files. Now, lock files can be created only by root, because
/var/lock is root.root/755, so arduino can be run only by root, and it
is not good.

I looked around in rxtx documentation, and saw that it expects
/var/lock to be root.uucp/775, so I checked for uucp group, which
doesn't exist by default. I found on the Arch wiki
(http://wiki.archlinux.org/index.php/UID_and_GID_List) that uucp has a
reserved user/group, so I grepped through /var/abs to find out who
creates the group, and it is hylafax, which has definitely nothing to
do with arduino and such. Also, in post_remove() the user and group
are deleted, which would make it a dependency for arduino.

Looking through the FHS I found this page:
http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLOCKLOCKFILES
It references uucp, even though it doesn't say it should be the
default GID, but to make it usable for apps like rxtx I think yes.

What I propose is:
 - adding the uucp UID/GID by default in passwd/group
 - removing the relative sections from hylafax (in both PKGBUILD and
hylafax.install
 - changing the GID for /var/lock to uucp

RFC...


bardo

_______________________________________________
arch mailing list
arch@archlinux.org
http://archlinux.org/mailman/listinfo/arch

Reply via email to