From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17394 invoked by alias); 16 Nov 2001 17:36:28 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 17373 invoked from network); 16 Nov 2001 17:36:27 -0000 Received: from unknown (HELO sbcsmtp2.sbc.com) (209.184.203.4) by sourceware.cygnus.com with SMTP; 16 Nov 2001 17:36:27 -0000 Received: from sbc.com (localhost [127.0.0.1]) by sbcsmtp2.sbc.com (8.10.1/8.10.1) with ESMTP id fAGHXNv04210 for ; Fri, 16 Nov 2001 11:33:23 -0600 (CST) Received: from chpsmtp2.sbc.com (chpsmtp2.sbc.com [132.201.82.89]) by sbcsmtp2.sbc.com (8.10.1/8.10.1) with ESMTP id fAGHXCX04044 for ; Fri, 16 Nov 2001 11:33:13 -0600 (CST) Received: from sbc.com (localhost [127.0.0.1]) by chpsmtp2.sbc.com (8.10.1/8.10.1) with ESMTP id fAGHaFN01180 for ; Fri, 16 Nov 2001 11:36:15 -0600 (CST) Received: from sbc.com (ja7295cbnt.sbc.com [10.161.24.41]) by chpsmtp2.sbc.com (8.10.1/8.10.1) with ESMTP id fAGHa8v01119; Fri, 16 Nov 2001 11:36:08 -0600 (CST) Message-ID: <3BF54DEB.682F3479@sbc.com> Date: Sun, 11 Nov 2001 08:26:00 -0000 From: "James L. Ash" X-Mailer: Mozilla 4.72 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin@cygwin.com Subject: more cron issues Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00453.txt.bz2 Hi. I love Cygwin. If I can't get cron to work, I'll have to abandon it. I know everyone is tired of hearing about cron problems, but I've tried everything. I've read all the mail lists, but I can't get this to work to save my life. I have this problem on NT 4.0 and on W2K. The problem is identical. These snippets are from my NT4.0 box. The description for Event ID ( 0 ) in Source ( /USR/SBIN/CRON ) could not be found. It contains the following insertion string(s): /USR/SBIN/CRON : Win32 Process Id = 0x1AF : Cygwin Process Id = 0x1AF : (CRON) error (can't switch user context). and... The description for Event ID ( 0 ) in Source ( /USR/SBIN/CRON ) could not be found. It contains the following insertion string(s): /USR/SBIN/CRON : Win32 Process Id = 0x1AF : Cygwin Process Id = 0x1AF : (Administrator) CMD (/usr/bin/date > /home/Administrator/CRONDATE). I have done the following: cygrunsrv -I cron -p /usr/sbin/cron -a -D -e "CYGWIN=ntsec tty" no go... cygrunsrv -I cron -p /usr/sbin/cron -a'-D' -e "CYGWIN=ntsec tty" (saw that one in a mail message, no go) Then I start it, of course: cygrunsrv -S cron I am running as "administrator" My /etc/group looks like this: Everyone:S-1-1-0:0: SYSTEM:S-1-5-18:18: None:S-1-5-21-361630140-1355681568-311576647-513:513: Administrators:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Power Users:S-1-5-32-547:547: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: cvs:S-1-5-21-361630140-1355681568-311576647-1007:1007: mailmen:S-1-5-21-361630140-1355681568-311576647-1012:1012: mqm:S-1-5-21-361630140-1355681568-311576647-1001:1001: My /etc/passwd looks like this: Everyone:*:0:0:,S-1-1-0:: SYSTEM:*:18:18:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator::500:513:,S-1-5-21-361630140-1355681568-311576647-500:/home/Administrator:/bin/bash cbadmin::1000:513:cbadmin,S-1-5-21-361630140-1355681568-311576647-1000:/home/cbadmin:/bin/bash db2admin::1005:513:db2admin,S-1-5-21-361630140-1355681568-311576647-1005:/home/db2admin:/bin/bash Guest::501:513:,S-1-5-21-361630140-1355681568-311576647-501:/home/Guest:/bin/bash ja7295cvs::1010:513:James Ash,S-1-5-21-361630140-1355681568-311576647-1010:/home/ja7295cvs:/bin/bash mailman::1013:513:James Ash,S-1-5-21-361630140-1355681568-311576647-1013:/home/mailman:/bin/bash rg3454::1008:513:Rob Gimenez,S-1-5-21-361630140-1355681568-311576647-1008:/home/rg3454:/bin/bash SMSCliSvcAcct&::1006:513:SMSCliSvcAcct&,S-1-5-21-361630140-1355681568-311576647-1006:/home/SMSCliSvcAcct&:/bin/bash webmaster::1014:513:Web Master,S-1-5-21-361630140-1355681568-311576647-1014:/home/webmaster:/bin/bash I have rebuilt both several times because I've seen that suggesting in the mail threads, with mkpasswd -l >/etc/passwd mkgroup -l >/etc/group I am running CYGWIN with ntsec. The funny thing is, cron has this problem on my laptop when hooked up to the network. It DOES NOT have the problem undocked. I've look at permissions on the crontabs. Seems fine. I'm using the latest cron 3.0.1-5. Thanks for anything you can suggest! Jim -- 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/