delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/22/12:03:03

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 22 Feb 2002 12:01:57 -0500 (EST)
From: Michael Adler <adler AT glimpser DOT org>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: /var/cron permissions
In-Reply-To: <20020221104112.F23094@cygbert.vinschen.de>
Message-ID: <Pine.NEB.4.44.0202221102140.3914-100000@reva.sixgirls.org>
MIME-Version: 1.0

>> I looked at the nt permissions of the /var/cron/tab direct and it is
>> only modifiable by the user SYSTEM, while on a machine with a well
>> working cron, that directory is modifiable by the Administrator's group
>> ( of which, the user 'eagle' is a member).

> Just change the permissions to 1755.

>> The other note is that there is a user 'S-1-0-0' which the OS doesn't
>> seem to recognize, since it puts a red question mark on the icon.

> It's created by Cygwin to implement POSIX bits not available in
> NT ACLs.


That solution did not work, but I did find out the problem.

Immediately following installation, if I start the cron daemon as the
SYSTEM user (without specifying a user):

cygrunsrv --install cron --path /usr/sbin/cron --args -D --env CYGWIN="ntsec" --disp "CYGWIN cron"

Then the /var/cron directories are created and owned by the SYSTEM user.
So, when a user tries to create crontab entry, it fails because they don't
have permission in those directories, and since they are not the owner,
they cannot simply change the mode.

I think it would be a good idea to note in the docs that you should
execute a crontab, or manually create a /var/cron/tabs directory before
starting the cron daemon as SYSTEM. Perhaps the cron package should do
this upon installation so that it definately will have user-writable
permissions.

Thanks for the great product. I hope this is a valuable contribution.

Mike Adler



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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