[Nut-upsuser] Fwd: NUT on FreeBSD

Charles Lepple clepple at gmail.com
Mon Feb 12 00:51:21 CET 2007


On 2/11/07, Carlos Rodrigues <carlos.efr at mail.telepac.pt> wrote:
> I'm forwarding this to the list, as I'm not quite sure what's going on
> here. Never seen this on Linux, don't know if it is a FreeBSD thing or
> not.

Apparently, uu_lock *is* a FreeBSD thing.

What does 'man uu_lock' say about lock directories? I think the
permission error is due to NUT trying to create a lock file in a lock
directory that it doesn't have permission to write to.

Also, did you specify a user to run as? The configure.in file implies
that it defaults to user "uucp" if it finds uu_lock, so maybe the
"uucp" user has write access to that directory.

> ---------- Forwarded message ----------
> From: Herman J van der Merwe <herman at mercygate.com>
> Date: Feb 11, 2007 9:50 PM
> Subject: NUT on FreeBSD
> To: carlos.efr at mail.telepac.pt
>
>
>
>
> Hello Carlos
>
> Maybe you can assist me with NUT 2.0.5 on FreeBSD 6.2-STABLE
>
> 1. I compiled from source and installed - no .conf files created in
> specified directory (in my case /usr/local/etc/nut) - no big problem -
> can do them manually
> 2. Created ups.conf with content
>
> [QP1000]
> driver = megatec
> port = /dev/cuad1
> desc = "Fileserver"
>
> 3. Created upsd.conf with content:
>
> ACL all 0.0.0.0/0
> ACL localhost 127.0.0.1/32
>
> ACCEPT localhost
> REJECT all
>
> 4. I did a chmod 777 on /dev/cuad1 to eliminate any permission pains
> at the beginning
>
> 5. I then started nut and got the following error:
>
>
> fileserver# /usr/local/etc/nut/bin/upsdrvctl start
> Network UPS Tools - UPS driver controller 2.0.5
> Network UPS Tools - Megatec protocol driver 1.5 (2.0.5)
> Carlos Rodrigues (c) 2003-2006
>
> Can't uu_lock cuad1: creat error: Permission denied
> Driver failed to start (exit status=1)
>
> 6. Since cuad1 has permission 777 this should not be possible ...
>
> If you cannot assist kindly forward the mail to somebody that can -
> this is fairly NB
>
> Thanks in advance and regards!
>
> Herman J van der Merwe
> SOUTH AFRICA
>
>
>
>
> --
> Carlos Rodrigues
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>


-- 
- Charles Lepple



More information about the Nut-upsuser mailing list