Arnaud Quette wrote:
karl wrote:
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.
Could it be done with a dialog at install?
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.
I think the reason there isn't a neat solution to this problem is that there is
no way to
'discover' UPS devices.
You could do a dialog at install where you ask where the UPS is attached and
generate a rule
-- But I
think the best way is to ask if the user wants to add the nut user to dialout
at install
time because it allows switching of serial ports (-- just my 2 cents worth. )
There shouldn't be a similar problem with usb UPS systems.
----------------------------------------------------------------
Karl Schmidt EMail [EMAIL PROTECTED]
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th Street Ph (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434
It looks like both parties are now playing the tax Peter
to buy Paul's vote game. This won't end well. -kps
----------------------------------------------------------------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]