Mail Archives: cygwin/2001/12/23/18:52: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
|
From: | posting-list AT MailAndNews DOT com (Jari Aalto)
|
To: | cygwin AT sourceware DOT cygnus DOT com
|
Subject: | Re: Cron problem
|
Keywords: | cron,root,corinna,etc,system,dummy,var,none
|
X-Sender-Info: | Emacs resources http://tiny-tools.sourceforge.net/
|
| http://home.eu.org/~jari/homepage.html. ICQ 'jari-aalto' 82313129
|
| PGP 2.6.x keyid 47141D35 http://www.pgpi.net/
|
References: | <9791A828507D5A418741095C3FD0DDE31323D5 AT INDUS DOT paramanet DOT com>
|
| <20011220220112 DOT Y21898 AT cygbert DOT vinschen DOT de>
|
Date: | Mon, 24 Dec 2001 02:00:26 +0200
|
In-Reply-To: | <20011220220112.Y21898@cygbert.vinschen.de> (Corinna Vinschen's
|
| message of "Thu, 20 Dec 2001 22:01:12 +0100")
|
Message-ID: | <1yhlpjvp.fsf@blue.sea.net>
|
Lines: | 99
|
User-Agent: | Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-*-nt5.0.2195)
|
| (i386-*-nt5.0.2195)
|
MIME-Version: | 1.0
|
* Thu 2001-12-20 Corinna Vinschen <cygwin AT cygwin DOT com> list.cygwin
* Message-Id: <20011220220112 DOT Y21898 AT cygbert DOT vinschen DOT de>
| On Thu, Dec 20, 2001 at 02:28:02PM -0500, Satya Nemana wrote:
>
>> Any info on how to make this cron work, will be of great help to us all.
>
| Just to be sure, I'm telling my setup.
Thank you Corinna, however I have exactly the same problem as the original
poster. This is the error from event viewer after:
//root AT W2KPICASSO $ cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=binmode tty ntsec"
//root AT W2KPICASSO $ mkdir /home/system
//root AT W2KPICASSO $ net start cron
The cron service is starting.
The cron service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
The description for Event ID ( 0 ) in Source ( cron ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: cron : Win32
Process Id = 0xBC0 : Cygwin Process Id = 0xBC0 : starting service
`cron' failed: execv: 255, error 0.
I was missing the SYSTM from /etc/password, so Iadded the entry
by hand there and created /home/systemm as in your setup.
/var/cron/tabs/ is empty
-rw-r--r-- 1 root None 327 Sep 23 14:23 /etc/group
-rw-r--r-- 1 root None 509 Dec 24 01:49 /etc/passwd
| - cron installed with
>
| cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=binmode tty ntsec"
>
| - My /etc/passwd (partly):
>
| root:*:0:0:,S-1-5-32-544::
| Everyone:*:1:1:,S-1-1-0::
| SYSTEM:*:18:18:,S-1-5-18:/home/system:/bin/bash
| corinna::100:0:,S-1-5-21-XXX-YYY-ZZZ-1003:/home/corinna:/bin/tcsh
| dummy::101:545:,S-1-5-21-XXX-YYY-ZZZ-1004:/home/dummy:/bin/bash
>
| - My /etc/group (partly):
>
| root:S-1-5-32-544:0:
| everyone:S-1-1-0:1:
| SYSTEM:S-1-5-18:18:
| none:S-1-5-21-XXX-YYY-ZZZ-513:513:
| users:S-1-5-32-545:545:
>
| - /etc, /etc/passwd and /etc/group world readable.
>
| - ls -laR /var/cron
>
| /var/cron:
| total 0
| drwxrwxrwt 3 corinna root 0 Jul 10 11:51 .
| drwxr-xr-x 6 dummy users 0 Mar 8 2001 ..
| drwxrwxrwt 2 corinna root 0 Sep 19 19:00 tabs
Hm. How did you made ugo+rwx . ? In my system, logged in as Administrator,
the permissions still staty as:
//root AT W2KPICASSO /var/cron $ chmod ugo+rwx .
//root AT W2KPICASSO /var/cron $ ls -la
total 0
drwxr-xr-x 3 root None 0 Jul 11 12:27 .
drwxr-xr-x 8 root None 0 Feb 10 2001 ..
drwxr-xr-x 2 root None 0 Jul 11 12:27 tabs
| /var/cron/tabs:
| total 2
| drwxrwxrwt 2 corinna root 0 Sep 19 19:00 .
| drwxrwxrwt 3 corinna root 0 Jul 10 11:51 ..
| -rw-r----- 1 dummy SYSTEM 225 Sep 19 19:00 dummy
| -rw-r----- 1 corinna SYSTEM 230 Sep 19 18:58 corinna
>
| `corinna' is an admin account, `dummy' is a standard user.
>
| Cron works fine for both accounts, corinna as well as dummy.
>
| I don't know what's your problem is. I can just suggest to debug
| your installation.
Further debug instrustion where to look next are welcome.
is it possible to run cron at the foregroung with strace or
something in order to see why it fails?
Jari
--
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 -