Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I was attacked by dselect as a small child and have since avoided debian. -- Andrew Morton


devel / comp.unix.bsd.freebsd.misc / Re: First time NUT user

SubjectAuthor
* First time NUT userDrew Lawson
`* Re: First time NUT userLowell Gilbert
 `- Re: First time NUT userDrew Lawson

1
First time NUT user

<s9rvc4$21qt$1@raid.furrfu.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=54&group=comp.unix.bsd.freebsd.misc#54

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 09 Jun 2021 22:02:28 -0500
From: dre...@furrfu.invalid (Drew Lawson)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: First time NUT user
Date: Thu, 10 Jun 2021 03:02:28 -0000 (UTC)
Organization: Center for Unverified Assertions
Sender: drew@furrfu.invalid
Message-ID: <s9rvc4$21qt$1@raid.furrfu.com>
Injection-Date: Thu, 10 Jun 2021 03:02:28 -0000 (UTC)
Injection-Info: raid.furrfu.com; posting-host="localhost:127.0.0.1"; logging-data="67421"; mail-complaints-to="usenet@raid.furrfu.com"
X-Host: raid.furrfu.com
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: drew@raid.furrfu.com (Drew Lawson)
Lines: 39
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-PayLGLWKuWptLQo1QNQLnuJ67iQVc405pTP4GJGqEpreBD6a54xnq7Bxva7YomT4eHJM8971z1IXCIh!3IlLTBhouCyDzzttFDWdYxS4oYnRGjiyvug7Bj23GXjTlcnpoDJS
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2425
 by: Drew Lawson - Thu, 10 Jun 2021 03:02 UTC

I am trying to set up NUT for the first time (should have been
running this for years), and running into confusion.

UPS is an APC SmartUPS, but I don't think I am far enough along for
it to be a problem.

Console message on connection is:
kernel: ugen0.5: <American Power Conversion Back-UPS XS 1000M FW:945.d11 .D USB FW:d11> at usbus0

So I configured:

[ups]
driver = apcsmart
port = /dev/ugen0.5

But running as root (su - from tcsh):

-=-=-=-=-=-=-=-=-
% /usr/local/etc/rc.d/nut start
Network UPS Tools - UPS driver controller 2.7.4
Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4)
APC command table version 3.1

Unable to open /dev/ugen0.5: Permission denied

Current user id: uucp (66)
Serial port owner: root (0)
Serial port group: operator (5)
Mode of port: 0600
-=-=-=-=-=-=-=-=-=-

Everything about the port is correct, but I cannot figure out why
it thinks that the current user is uucp.

The same happens if I resolve the slink and give port as /dev/usb/0.5.0.

--
|Drew Lawson | Mrs. Tweedy! |
| | The chickens are revolting! |

Re: First time NUT user

<44r1h9gavw.fsf@be-well.ilk.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=55&group=comp.unix.bsd.freebsd.misc#55

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lguse...@be-well.ilk.org (Lowell Gilbert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: First time NUT user
Date: Thu, 10 Jun 2021 08:30:27 -0400
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <44r1h9gavw.fsf@be-well.ilk.org>
References: <s9rvc4$21qt$1@raid.furrfu.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="88dd675ab1ca1a48e7c89220885016f2";
logging-data="1473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183eCaucrhZphxvVJa5JwSK"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (berkeley-unix)
Cancel-Lock: sha1:t4pe5Htt0bSVFK+O4tuHpGshvnk=
sha1:PlV4OHp4JDahvienByPQ5kw/zwA=
 by: Lowell Gilbert - Thu, 10 Jun 2021 12:30 UTC

drew@furrfu.invalid (Drew Lawson) writes:

> I am trying to set up NUT for the first time (should have been
> running this for years), and running into confusion.
>
> UPS is an APC SmartUPS, but I don't think I am far enough along for
> it to be a problem.
>
> Console message on connection is:
> kernel: ugen0.5: <American Power Conversion Back-UPS XS 1000M FW:945.d11 .D USB FW:d11> at usbus0
>
> So I configured:
>
> [ups]
> driver = apcsmart
> port = /dev/ugen0.5
>
> But running as root (su - from tcsh):
>
> -=-=-=-=-=-=-=-=-
> % /usr/local/etc/rc.d/nut start
> Network UPS Tools - UPS driver controller 2.7.4
> Network UPS Tools - APC Smart protocol driver 3.1 (2.7.4)
> APC command table version 3.1
>
> Unable to open /dev/ugen0.5: Permission denied
>
> Current user id: uucp (66)
> Serial port owner: root (0)
> Serial port group: operator (5)
> Mode of port: 0600
> -=-=-=-=-=-=-=-=-=-
>
> Everything about the port is correct, but I cannot figure out why
> it thinks that the current user is uucp.

Because the port is compiled to run as uucp by default.

Don't run it as root. Either give the permissions to uucp, or compile it
(src.conf would be a good place to put that configuration) to use a new,
single-purpose user.

Or for that matter, you could use apcupsd instead.

Be well.
--
Lowell Gilbert, embedded/networking software engineer
http://be-well.ilk.org/~lowell/

Re: First time NUT user

<s9t34c$1672$1@raid.furrfu.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=56&group=comp.unix.bsd.freebsd.misc#56

  copy link   Newsgroups: comp.unix.bsd.freebsd.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!tncsrv06.tnetconsulting.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 10 Jun 2021 08:12:44 -0500
From: dre...@furrfu.invalid (Drew Lawson)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: First time NUT user
Date: Thu, 10 Jun 2021 13:12:44 -0000 (UTC)
Organization: Center for Unverified Assertions
Sender: drew@furrfu.invalid
Message-ID: <s9t34c$1672$1@raid.furrfu.com>
References: <s9rvc4$21qt$1@raid.furrfu.com> <44r1h9gavw.fsf@be-well.ilk.org>
Injection-Date: Thu, 10 Jun 2021 13:12:44 -0000 (UTC)
Injection-Info: raid.furrfu.com; posting-host="localhost:127.0.0.1";
logging-data="39138"; mail-complaints-to="usenet@raid.furrfu.com"
X-Host: raid.furrfu.com
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: drew@raid.furrfu.com (Drew Lawson)
Lines: 26
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-0qHgODXAsWSdidQSNCWoV3VgLd6Ono4NT5xZzqmJerqg2ftrIuQLIbpKI7WSH/cRyxjTd+yfN+mAYqt!4jHVqt3xoex8W/VhjLPQHzYAoDs5Hi3f4C0TuVLrGcgK38+wK31U
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2185
 by: Drew Lawson - Thu, 10 Jun 2021 13:12 UTC

In article <44r1h9gavw.fsf@be-well.ilk.org>
Lowell Gilbert <lgusenet@be-well.ilk.org> writes:
>drew@furrfu.invalid (Drew Lawson) writes:

>> Everything about the port is correct, but I cannot figure out why
>> it thinks that the current user is uucp.
>
>Because the port is compiled to run as uucp by default.

Well, that solves the mystery.
Thanks.

>Don't run it as root. Either give the permissions to uucp, or compile it
>(src.conf would be a good place to put that configuration) to use a new,
>single-purpose user.
>
>Or for that matter, you could use apcupsd instead.

I hadn't heard of apcupsd before. Thanks for the lead. That sounds
like it may be a simpler way to get what I want (a clean shutdown).

--
Drew Lawson | Broke my mind
| Had no spare
|

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor