[Nix-dev] Picocom and /run/lock permissions

Luke Clifton ltclifton at gmail.com
Fri Jun 6 08:54:36 CEST 2014


Hi,

I just installed picocom and ran into a small problem (which I have
encountered before on other distributions [0]) to do with lock files in
/run/lock.

The issue is that picocom is creating its lock files directly in /run/lock,
which is only root writeable. Requiring root to run picocom is not really
ideal. According to [0] device locks should be in /run/lock/lockdev. This
directory would be group writeable, and be owned by group "lock". I would
then recompile picocom to use /run/lock/lockdev instead and make sure I
belong to the "lock" group.

So it seems NixOS is doing the right thing with the permissions, I'm just
wondering what the deal is with creating extra directories in the /run/lock
directory which can be used by non-root programs, or whether locks should
be placed somewhere else in NixOS.

Regards,

Luke

[0]
http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140606/0bb6e4d2/attachment.html 


More information about the nix-dev mailing list