Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 1999 23:09:40 +1300
From:      "Dan Langille" <dan.langille@dvl-software.com>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Cannot become a daemon: Permission denied 
Message-ID:  <199911181009.EAA28014@metis.host4u.net>
In-Reply-To: <17009.942917727@axl.noc.iafrica.com>
References:  Your message of "Thu, 18 Nov 1999 19:45:15 %2B1300."             <199911180644.AAA17416@metis.host4u.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911181009.EAA28014>