From owner-freebsd-questions Sun Oct 3 13:53:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 141D214DEA for ; Sun, 3 Oct 1999 13:53:23 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id PAA27241; Sun, 3 Oct 1999 15:53:20 -0500 (CDT) (envelope-from dan) Date: Sun, 3 Oct 1999 15:53:20 -0500 From: Dan Nelson To: cjclark@home.com Cc: FreeBSD Questions Subject: Re: Smart UPS Tools Trouble Message-ID: <19991003155320.A26952@dan.emsphone.com> References: <199910032023.QAA07330@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <199910032023.QAA07330@cc942873-a.ewndsr1.nj.home.com> X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 03), Crist J. Clark said: > I looked in the mail archives and someone recommended Smart UPS Tools > from www.exploits.org. I grabbed the tarball and have been trying to > get this to work. No luck there either. The first thing I found was > that the program drops root priviliges before openning the serial > port. I added some getuid() statements to help me debug, and this is > what I was getting, > > # /usr/local/ups/bin/backupspro /dev/cuaa0 > Smart UPS Tools - Back-UPS Pro driver 1.10 (0.41.4) > Unable to open (1) /dev/cuaa0: Permission denied > uid: 65534, euid: 65534 > > This is with /dev/cuaa0 set to the FreeBSD default of, > > crw-rw---- 1 uucp dialer 28, 128 Oct 1 23:08 /dev/cuaa0 What I do is run ./configure --with-gid=68 . There are still some other porting problems with the program; I've been sending patches to the author but I moved to a new machine that has only one serial port, so I have to unplug my mouse to play with the UPS. The last version I played with was 0.41.4p6. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message