delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/07/15:07:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 7 May 2003 14:56:26 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Bill C. Riemers" <cygwin AT docbill DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: cron in cygwin
In-Reply-To: <001801c314c5$208250f0$6400a8c0@FoxtrotTech0001>
Message-ID: <Pine.GSO.4.44.0305071452260.3212-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Wed, 7 May 2003, Bill C. Riemers wrote:

> > This is *way* too complicated.  It's fine if you run other things using
> > sysvinit, but if all you want is cron, try the way described in
> > /usr/doc/Cygwin/cron.README (you did read it, didn't you?  that directory
> > contains the necessary instructions specifically for the Cygwin ports --
> > see <http://cygwin.com/faq/faq.html#SEC28>).
>
> Yes, I did try the directions in the README, but they do not work.
> "cygrunsrv" does not have -D option...
>
> cygrunsrv: unknown option -- D

Bill, did you use the *exact* line from /usr/doc/Cygwin/cron.README?

| Install as service like that:
| 	cygrunsrv -I cron -p /usr/sbin/cron -a -D
                                            ^^
The "-a" is a cygrunsrv option.  It tells cygrunsrv to pass the "-D"
option to cron.

> > Regarding your "NOTE 1" below -- is it reproducible?  Could you please
> > post the output of "getfacl filename" before and after "chown filename"?
> > Perhaps Pierre or Corinna could comment on this?
>
> It reproduces 100% of the time.  I've tried it on several different machines
> as well..
>
> $ cd /etc
> $ echo "hi" > foo.txt
> $ chmod 600 foo.txt
> $ getfacl foo.txt
> # file: foo.txt
> # owner: docbill
> # group: None
> user::rw-
> group::---
> mask:rwx
> other:---
>
> $ chown SYSTEM foo.txt
> $ getfacl foo.txt
> # file: foo.txt
> # owner: SYSTEM
> # group: None
> user::rw-
> group::---
> mask:rwx
> other:---

Looks fine to me.  What error do you get if you try "echo 'hi' >> foo.txt"
after that?  What if you try it from a SYSTEM-owned shell?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019