Pierre-Yves Aillet
2006-Jan-03 02:30 UTC
[Nut-upsuser] Making the driver keeping root privileges
Hello, I would like to know if there is a mean to prevent the driver to drop root privileges through config files ? I have seen the possibility of passing -u root to the driver command line. But I don't see how to use it with my rc-scripts without messing things badly. I have also seen the RUN_AS_USER variable but it seems to apply only to the upsmon client.
Carlos Rodrigues
2006-Jan-03 02:44 UTC
[Nut-upsuser] Making the driver keeping root privileges
On 1/3/06, Pierre-Yves Aillet <pierreyves.aillet@free.fr> wrote:> Hello, > > I would like to know if there is a mean to prevent the driver to drop > root privileges through config files ? > > I have seen the possibility of passing -u root to the driver command > line. But I don't see how to use it with my rc-scripts without messing > things badly. > > I have also seen the RUN_AS_USER variable but it seems to apply only to > the upsmon client.Maybe using the global "user = root" in "ups.conf". -- Carlos Rodrigues
Arnaud Quette
2006-Jan-03 21:12 UTC
[Nut-upsuser] Making the driver keeping root privileges
salut Pierre-Yves, 2006/1/3, Pierre-Yves Aillet <pierreyves.aillet@free.fr>:> > Hello, > > I would like to know if there is a mean to prevent the driver to drop > root privileges through config files ? > > I have seen the possibility of passing -u root to the driver command > line. But I don't see how to use it with my rc-scripts without messing > things badly. > > I have also seen the RUN_AS_USER variable but it seems to apply only to > the upsmon client.I don't know why you want to do so, apart for debugging purpose, but it's really a bad idea. If it's to override an permissions problems, for example with udev, look at: - that link for serial ports and udev: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=334105 - that ones for USB: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/nut/scripts/hotplug-ng/Attic/?cvsroot=nut&only_with_tag=Development 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/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20060103/663ee822/attachment.htm