Re: Nut,usb and installation (continued)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 1 Oct 2005, david walcroft wrote:

> Still plugging away.got it down to this:
> 
> Can't open /var/run/nut/genericups-ttyUSB0.pid: No such file or directory

Does /var/run/nut exist??

> Can't chdir to /var/run/nut: Permission denied
> Driver failed to start (exit status=1)
>                                                             [FAILED]
> Can't chdir to /var/run/nut: Permission denied

It does not look like it, either that or it is not owned by the nut user.

> [david@reddwarf ups]$ ls -l
> total 80
> -rwxr-x---  1 nut  nut   1121 Oct  1 17:25 hosts.conf
> -rwxr-x---  1 nut  nut   3772 Oct  1 17:55 ups.conf
> -rwxr-x---  1 nut  nut   1369 Oct  1 18:17 upsd.conf
> -rwxr-x---  1 nut  nut   2190 Oct  1 12:53 upsd.users
> -rw-------  1 nut  nut  11304 Oct  1 12:37 upsmon.conf
> -rwxr-x---  1 nut  nut   3871 Oct  1 12:42 upssched.conf
> -rwxr-x---  1 nut  nut   1420 Mar 11  2005 upsset.conf
> -rw-rw----  1 root root  1773 Mar 11  2005 upsstats.html
> -rw-rw----  1 root root  1867 Mar 11  2005 upsstats-single.html
> Can't open /etc/ups/ups.conf: Can't open /etc/ups/ups.conf: Permission 
> denied

You do not show the permissions for /etc/ups.

> Can't chdir to /var/run/nut: Permission denied

Fix the permissions on /var/run/nut or create it.

> [david@reddwarf ups]$ ls -l /var/run/upsmon.pid
> -rw-r--r--  1 root root 6 Oct  1 18:18 /var/run/upsmon.pid

Remember nut drops privs after starting. The nut user must be able to write
there. The above will not work. Suggest moving this to /var/run/nut and
make sure the dir is owned by the nut user.

> I'm a bit puzzled over permmision refusals and unavailability of 
> localhost. Could I ask for some help please or I'll never get Nut 
> configured.

My suggestions above will fix some of the permissions problems but most likely
will not fix all of your problems. I would suggest that you fix as much as you
can and see what problems are left.

Are you using the nut rpm? If so it should have created the proper directories
and permissions.

Mine looks like this:

(foghorn pts7) # ll -d /var/run/nut
drwxr-x---    2 nut      nut          4096 Sep 17 22:46 /var/run/nut
(foghorn pts7) # ll /var/run/nut
total 24
srw-rw----    1 nut      nut             0 Sep 17 22:45 apcsmart-ttyQ01e1
-rw-r--r--    1 nut      nut             5 Sep 17 22:45 apcsmart-ttyQ01e1.pid
srw-rw----    1 nut      nut             0 Sep 17 22:45 apcsmart-ttyQ01e2
-rw-r--r--    1 nut      nut             5 Sep 17 22:45 apcsmart-ttyQ01e2.pid
srw-rw----    1 nut      nut             0 Sep 17 22:45 apcsmart-ttyQ01e3
-rw-r--r--    1 nut      nut             5 Sep 17 22:45 apcsmart-ttyQ01e3.pid
srw-rw----    1 nut      nut             0 Sep 17 22:46 apcsmart-ttyQ01e4
-rw-r--r--    1 nut      nut             5 Sep 17 22:46 apcsmart-ttyQ01e4.pid
-rw-r--r--    1 nut      nut             5 Sep 17 22:46 upsd.pid
-rw-r--r--    1 root     root            5 Sep 17 22:46 upsmon.pid
(foghorn pts7) #

Notice that with the exception of upsmon.pid everything is owned by nut.
You will get different file names then above unless you happen to be monitoring
4 apc ups's connected via Equinox Ethernet Serial ports. :-)

Hope this helps,

Tom Diehl		tdiehl@xxxxxxxxxxxx		Spamtrap address mtd123@xxxxxxxxxxxx


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux