Re: Nut,usb and installation (continued)

From: Tom Diehl (tdiehl_at_rogueind.com)
Date: 10/01/05

  • Next message: Timothy A. Holmes: "SNMP Problems"
    Date: Sat, 1 Oct 2005 08:34:53 -0400 (EDT)
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    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@rogueind.com Spamtrap address mtd123@rogueind.com

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Timothy A. Holmes: "SNMP Problems"

    Relevant Pages

    • Re: Guitar shootout tonight...
      ... your intonation issue could have to do with the way the nut is ... and nothing to do with the bridge. ... The nut had to be moved back a hair to fix ...
      (rec.music.makers.guitar.jazz)
    • Re: Guitar shootout tonight...
      ... do a pre-sales check and let me know what all the issues are and what ... The nut had to be moved back a hair to fix ... thorough than my own and often times what seems like a major problem to ...
      (rec.music.makers.guitar.jazz)
    • Re: Shiming a Nut
      ... With a nod to "tradition" I folded up a piece of matchbook cover ... and shoved it under there to get me by until I could actually fix it. ... the nut at an angle and then just glued the FRONT of the nut to the ...
      (alt.guitar.bass)
    • Re: Zeugs auf der Katz
      ... "There is a tragic flaw in our precious Constitution, and I don't know what can be done to fix it. ... Only nut cases want to be president." ...
      (de.rec.tiere.katzen)
    • Re: BJ ist da - Die ersten Fotos.
      ... "There is a tragic flaw in our precious Constitution, ... what can be done to fix it. ... Only nut cases want to be ...
      (de.rec.tiere.katzen)