Re: [opensuse] Attempting (and failing) to use my UPS



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Wednesday, 2008-11-19 at 08:44 -0500, Patrick Shanahan wrote:

Yes, that's correct. But the driver is loaded/run as plain user and it has
no permission to access the USB raw, and thus, it fails. When the driver is
run as root it works (/usr/lib/ups/driver/megatec_usb -DDD -a myups), but
then it can not be daemonized.

At least, that's my current hypothesis.

You have a problem in upsd.conf, which contains "access control data",
or upsd.users, which sets permissions for the ups daemon. My ups
driver and monitor daemons run as user:upsd, which was created in
upsd.users which I quoted in a previous mail in this thread.

Possibly, but my main problem is not the daemon, but the driver. First I have to get the driver talking to the ups; once that works, I'll worry about the daemon.

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.


- -- Cheers,
Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkkkt6EACgkQtTMYHG2NR9WnuACeP2rNLDr/iscOn0gdAsYmHJvw
D/UAnjluxMt0PxgDV3sxJssW59WUz0DT
=4+XU
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx