delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/22/21:59:10

X-Spam-Check-By: sourceware.org
Message-ID: <462C12D3.6000400@vnet.ibm.com>
Date: Sun, 22 Apr 2007 18:58:43 -0700
From: Richard A Nelson <cowboy AT vnet DOT ibm DOT com>
User-Agent: Icedove 1.5.0.10 (X11/20070329)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: [cron] 4.1 and w/XP
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

I run cygwin on a variety of systems (Vista, 2k3, XP).

With the update to cron 4.1,  my XP system now fails to process /etc/crontab
due to 'WRONG FILE OWNER', where it was working fine.

I have tried changing ownership to the following, all with the same results:
	root:root
	root:system
	system:root
	administrators:root
	root:administrators

I do have the file mode as 0640 for all of these tests.
# getfacl /etc/crontab
# file: /etc/crontab
# owner: root
# group: root
user::rw-
group::r--
mask:rwx
other:---

/etc/passwd is thus (in part)
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
root:*:0:0:...-1003:/home/root:/bin/bash

/etc/group is (also in part)
SYSTEM:S-1-5-18:18:
None:S-1-5-21-1214440339-1417001333-725345543-513:513:
root:S-1-5-32-544:0:root
Administrators:S-1-5-32-544:544:Administrator,root

I'll not be updating the other systems, until I find a workaround for this -
cron is an integral part of my process !!!

The potential problems I can see are:
	* root is *not* administrator, but another account with administrator group
rights (yeah, I know this doesn't work so nice under vista)
	* under xp, cron appears to run as system
	* system(18) doesn't map to root(0)

I need to have root as 0 for cfengine, and other software, but I'm flexible as
to the assignments of system/administrator/administrators :)

--
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