Mailinglist Archive: opensuse (1986 mails)

< Previous Next >
Re: [opensuse] Attempting (and failing) to use my UPS
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Thu, 20 Nov 2008 04:11:52 +0100 (CET)
  • Message-id: <alpine.LSU.2.00.0811200404560.6163@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Wednesday, 2008-11-19 at 21:14 -0500, Patrick Shanahan wrote:

The init script starts three things:

upsdrvctl (message "Starting NUT UPS drivers failed")
upsd (Starting NUT UPS server failed)
upsmon (Starting NUT UPS monitor failed)

As the driver fails, the other two will fail too, so worrying about their
permissions is not important yet. My main problem is the driver part, and I
think it is also a permission problem.


post ups.conf, upsd.conf and upsd.users

ups.conf:

[myups]
# "BELKIN Active Battery Backup"
driver = megatec_usb -DDD
port = auto
desc = "Local UPS"
# user = root


the other two are not used. As I say, if the driver fails to load, the script exits and does not start the daemon, so it does not matter how it is configured.

I know this for sure, I have done strace on it. And I inserted an "exit" instruction on the script to make absolutely sure the daemon does not attempt to start.


The problem is that megatec_usb can not access the USB if run as user. And the driver controller has harcoded to run it as user. Not configurable.

Yes, I tried "run_as = root", and "... -u root". No difference.


- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkkk1XoACgkQtTMYHG2NR9U5ZgCeMJDlK5YNy0bVMKmIeAbP4kd7
iw0An3JW5YxMapQY0y5mF5YA2Xqdlmn5
=ObEr
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups