From owner-freebsd-questions Thu Nov 18 2: 9:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from metis.host4u.net (metis.host4u.net [209.150.128.22]) by hub.freebsd.org (Postfix) with ESMTP id 6A81A15363 for ; Thu, 18 Nov 1999 02:09:46 -0800 (PST) (envelope-from dan.langille@dvl-software.com) Received: from wocker (203-79-82-27.adsl-wns.paradise.net.nz [203.79.82.27]) by metis.host4u.net (8.8.5/8.8.5) with ESMTP id EAA28014; Thu, 18 Nov 1999 04:09:13 -0600 Message-Id: <199911181009.EAA28014@metis.host4u.net> From: "Dan Langille" Organization: DVL Software Limited To: Sheldon Hearn Date: Thu, 18 Nov 1999 23:09:40 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Cannot become a daemon: Permission denied Reply-To: dan.langille@dvl-software.com Cc: freebsd-questions@FreeBSD.ORG References: Your message of "Thu, 18 Nov 1999 19:45:15 +1300." <199911180644.AAA17416@metis.host4u.net> In-reply-to: <17009.942917727@axl.noc.iafrica.com> X-mailer: Pegasus Mail for Win32 (v3.12a) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 18 Nov 99, at 11:35, Sheldon Hearn wrote: > > On Thu, 18 Nov 1999 19:45:15 +1300, "Dan Langille" wrote: > > > I'm trying to start cvsupd on a box. > > > > # su -m cvsup -c "/usr/local/sbin/cvsupd -e -C 8 -l daemon -s > > /usr/local/etc/cvsup/sup.client" > > Cannot create "daemon": Permission denied > > > > It will start with this command: > > > > # su -m cvsup -c "/usr/local/sbin/cvsupd -e -s > > Perhaps I'm stating the obvious here, but are you sure that user cvsup > has write permissions on the directory from which you run the first form > of the command? Good point: root@fred:/usr/local/etc/cvsup] # ls -ld . drwxrwxr-x 4 root cvsup 512 Nov 18 17:43 . [root@fred:/usr/local/etc/cvsup] # su -m cvsup -c "/usr/local/sbin/cvsupd -e -C 8 -l daemon -s /usr/local/etc/cvsup/sup.client" Listen failed: Port in use [root@fred:/usr/local/etc/cvsup] # ps -auwx | grep cvsupd root 26733 3.0 1.7 872 500 p3 D+ 11:07PM 0:00.06 grep cvsupd root 26677 0.0 1.6 1436 464 ?? Is 10:41PM 0:00.09 /usr/local/sbin/cvsupd -e -C 8 -l @daemon -s sup.client [root@fred:/usr/local/etc/cvsup] # kill -quit 26677 [root@fred:/usr/local/etc/cvsup] # *** *** runtime error: *** aborted *** pc = 0x9b775 *** [root@fred:/usr/local/etc/cvsup] # su -m cvsup -c "/usr/local/sbin/cvsupd -e -C 8 -l daemon -s /usr/local/etc/cvsup/sup.client" [root@fred:/usr/local/etc/cvsup] # Cannot become a daemon: Permission denied [root@fred:/usr/local/etc/cvsup] # chown cvsup . [root@fred:/usr/local/etc/cvsup] # ls -ld . drwxrwxr-x 4 cvsup cvsup 512 Nov 18 23:07 . [root@fred:/usr/local/etc/cvsup] # su -m cvsup -c "/usr/local/sbin/cvsupd -e -C 8 -l daemon -s /usr/local/etc/cvsup/sup.client" [root@fred:/usr/local/etc/cvsup] # Cannot become a daemon: Permission denied [root@fred:/usr/local/etc/cvsup] # > If a file ``daemon'' exists in that directory, are you > sure that user cvsup has write permission on that file? no such file in that directory. -- Dan Langille - DVL Software Limited The FreeBSD Diary - http://www.freebsddiary.org/freebsd/ NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/ The Racing System - http://www.racingsystem.com/racingsystem.htm unix @ home - http://www.unixathome.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message