<br><font size=2><tt>&gt; &nbsp;Hello Arnaud,</tt></font>
<br>
<br><font size=2><tt>Hi Alex,</tt></font>
<br><font size=2><tt><br>
&gt; &nbsp; &nbsp;First of all i want to thank you for such useful and
convenient<br>
&gt; system tool as NUT. I think it is one from most important tools<br>
&gt; for server machines. And it make its work excellent.</tt></font>
<br>
<br><font size=2><tt>thanks</tt></font>
<br><font size=2><tt><br>
&gt; &nbsp; &nbsp;I use NUT on SuSE distro and adapted init-scripts from
package for<br>
&gt; this distro style. Send you them with hope that you find them useful<br>
&gt; for other users and may be include them in NUT package.<br>
&gt; &nbsp; &nbsp;And one question. When i try use secure scheme that describe
in<br>
&gt; 'docs/FAQ' (with 'nutdev' and 'nutsrv' users) i get problem when<br>
&gt; i tested power race conditions. When i run command<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;/usr/local/ups/sbin/upsmon -c fsd<br>
&gt; at the end of 'halt' script i see:<br>
&gt; ---------------------------------------------------<br>
&gt; <br>
&gt; Network UPS Tools - UPS driver controller 2.0.3<br>
&gt; Network UPS Tools (version 2.0.3) - APC Smart protocol driver<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Driver version 1.99.7, command table
version 2.0<br>
&gt; <br>
&gt; Unable to open /dev/ttyS0: Permission denied<br>
&gt; <br>
&gt; &nbsp; &nbsp;Current user id: nutsrv (107)<br>
&gt; Serial port owner: nutdev (106)<br>
&gt; Serial port group: uucp (14)<br>
&gt; &nbsp; &nbsp; &nbsp; Mode of port: 0600<br>
&gt; <br>
&gt; Things to try:<br>
&gt; <br>
&gt; &nbsp; - Use another port (with the right permissions)<br>
&gt; <br>
&gt; &nbsp; - Fix the port owner/group or permissions on this port<br>
&gt; <br>
&gt; &nbsp; - Run this driver as another user (upsdrvctl -u or 'user=...'
in &nbsp;<br>
&gt; ups.conf).<br>
&gt; &nbsp; &nbsp; See upsdrvctl(8) and ups.conf(5).<br>
&gt; <br>
&gt; Fatal error: unusable configuration<br>
&gt; Driver failed to start (exit status=1)<br>
&gt; <br>
&gt; -----------------------------------------------------<br>
&gt; &nbsp; &nbsp;Same affect i can see when run command in shell:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;/usr/local/ups/bin/upsdrvctl -u nutdev
shutdown<br>
&gt; &nbsp; &nbsp;I was forced return to 'nut:nut' scheme.<br>
&gt; &nbsp; &nbsp;With best wishes,<br>
</tt></font>
<br><font size=2><tt>first note that Stanislav Brabec (official NUT maintainer
for SuSE)</tt></font>
<br><font size=2><tt>is part of the NUT Team, and is taking care of the
NUT packages.</tt></font>
<br><font size=2><tt>He's currently updating these for SuSE 10.1...</tt></font>
<br>
<br><font size=2><tt>For your above problem, you need to change the /dev/ttyS0</tt></font>
<br><font size=2><tt>ownership to nutdev so that you can access the port
in RW mode.</tt></font>
<br><font size=2><tt>To do so, you need to look at udev. I've shipped udev
scripts with</tt></font>
<br><font size=2><tt>nut 2.0.3 as examples (these however need to be adapted.</tt></font>
<br><font size=2><tt>Meanwhile, you can use some chown/chmod into the upsd
init script...</tt></font>
<br>
<br><font size=2><tt>Arnaud Quette</tt></font>
<br><font size=2><tt>-- </tt></font>
<br><font size=2><tt>Linux / Unix Expert - MGE UPS SYSTEMS - R&amp;D Dpt</tt></font>
<br><font size=2><tt>Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/</tt></font>
<br><font size=2><tt>Debian Developer - http://people.debian.org/~aquette/</tt></font>
<br><font size=2><tt>OpenSource Developer - http://arnaud.quette.free.fr/</tt></font><pre>
</pre>