reopen 334105
thanks

Hi Karl,

2007/3/6, Karl Schmidt <[EMAIL PROTECTED]>:
Subject: nut: /dev/ttySx permissions
Package: nut
Version: 2.0.5-3
Severity: normal



-- System Information:
Debian Release: 4.0
   APT prefers testing
   APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)


I can change the permissions of /dev/ttyS1 and get things working - but on the 
next reboot
it again has the wrong permissions set by udev.

crw-rw---- 1 root dialout 4, 65 2007-03-05 22:22 ttyS1

I can think of several ways to fix this - but it seems to me the best would be 
to have the
nut user be a member of dialout?


At the very least there should be something in the docs so uses fix the 
permissions in a
consistent way.

As per the /usr/share/doc/nut/README.Debian.gz file, ยง2:
(2) serial port permissions
   The nut user need to be added to the dialout group for the serial
   communication to work.  The following command accomplishes this:
     addgroup nut dialout

   This is not done by default for security reason.

I may also add something like in http://bugs.debian.org/334105:
Place this in /etc/nut/rules.d/01-ups.rules or something:
KERNEL="ttyS15", GROUP="nut"

where '15' is your serial port.

So it belongs to #334105, which I've reopened to track this issue.

I will complete the doc with the next update.

thanks,
Arnaud
--
Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/

Reply via email to