Hey Charles,<br><br><div class="gmail_quote">2009/1/13 Charles Lepple <span dir="ltr">&lt;<a href="mailto:clepple@gmail.com">clepple@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Arnaud et al,<br>
<br>
I have been meaning to collect some of the documentation updates for<br>
permission-related errors, and I was wondering if you would mind if we<br>
moved the scripts/udev/README and scripts/hotplug/README files out of<br>
scripts/ and into the docs/ directory (probably docs/permissions.txt).<br>
We could also cover the *BSD /dev/usb* permission issues there, as<br>
well.<br>
<br>
Any thoughts on this?</blockquote><div><br>that would be nice, also including the following:<br><br>1) a note on the serial permissions, including the below things from&nbsp; README.Debian:<br>8&lt;------------------------------------------------------------------------------------------------------------------<br>
&nbsp;serial port permissions<br>&nbsp;&nbsp;&nbsp; The nut user need to be able to access the serial port both for<br>&nbsp;&nbsp;&nbsp; reading and writing.<br><br>&nbsp;&nbsp;&nbsp; There are two possibilities:<br><br>&nbsp;&nbsp;&nbsp; a) You can add the nut user to the dialout group.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The following command accomplishes this:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; addgroup nut dialout<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This is not done by default for security reason.<br><br>&nbsp;&nbsp;&nbsp; b) Another solution, for system supporting udev, is to create a file<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (for example /etc/udev/rules.d/52_nut-serialups.rules), placed<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; after 020_permissions.rules and to add something like:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KERNEL==&quot;ttyS1&quot;, GROUP=&quot;nut&quot;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where &#39;ttyS1&#39; has to be replaced by the exact name of your serial port.<br>
<br></div></div>8&lt;------------------------------------------------------------------------------------------------------------------<br>As a side note, the &quot;dialout&quot; group has to be replaced by uucp or whatever group that has the serial port ownership.<br>
<br>2) a note on Solaris USB permissions. Here is a base (warning: for MGE only):<br>8&lt;------------------------------------------------------------------------------------------------------------------<br>c) Bind MGE units to Solaris USB /Ugen layer using:<br>
<br># add_drv -i &#39;&quot;usb463,ffff.1&quot;&#39; -m &#39;* 0660 nut root&#39; ugen<br># update_drv -a -m &#39;* 0666 root sys&#39; -i &#39;&quot;usb463,0001.1&quot;&#39; ugen<br># reboot -- -r<br>8&lt;------------------------------------------------------------------------------------------------------------------<br clear="all">
<br>As a side note, we might consider generating a script for Solaris too...<br><br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>
Debian Developer - <a href="http://people.debian.org/~aquette/">http://people.debian.org/~aquette/</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a><br><br>