Discussion:
CRON Help -- Operation not permitted
Robert Gimbel
2002-12-03 20:35:32 UTC
Permalink
Hello-

I have been trying to get CRON to work with cygwin and have not been getting
to far and am now stumped and need a fresh set of eyes on my problem.

1.) I have started with the current versions of cygwin and cron.

923k 2002/11/27 d:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.17
<--snip-->
cron 3.0.1-7

2.) I have installed cron as a service with the following command line. It
was verified that it made it into the services and running as SYSTEM.
cygrunsrv -I CygCron -p /usr/sbin/cron -a -D -e "CYGWIN=tty ntsec"

3.) When I try to start this service I get the following:

Event Log:
Event Type: Error
Event Source: CygCron
Event Category: None
Event ID: 0
Date: 12/3/2002
Time: 12:53:44 PM
User: NT AUTHORITY\SYSTEM
Computer: ASPDATA1
Description:
The description for Event ID ( 0 ) in Source ( CygCron )
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: CygCron :
Win32 Process Id = 0x894 : Cygwin Process Id = 0x894 : starting
service `CygCron' failed: execv: 1, Operation not permitted.
Cron.log:
seteuid: Invalid argument
seteuid: Invalid argument
seteuid: Invalid argument
And from the command line:
cygrunsrv: Error starting a service: QueryServiceStatus:
Win32 error 1062:
The service has not been started.
SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
RGIMBEL:unused_by_nt/2000/xp:11015:10512:Robert
Gimbel,U-DOMAIN\RGIMBEL,S-1-5-21-841769095-1711675769-1846952604-1015:/home/
RGIMBEL:/bin/bash

I have also verified filesystem permissions so that both SYSTEM and EVERYONE
have full control to the files in the cygwin directory.. Right or Wrong it
was something to try!

Any suggestions where I need to look to figure this lil bugger out?

Thanks for any help and suggestions,

Robert Gimbel
Harig, Mark A.
2002-12-03 20:41:57 UTC
Permalink
1. Did you read through /usr/doc/Cygwin/cron.README?

2. What are the ownership and permissions of /var/cron and
/var/cron/tabs?

3. It looks as though you might be running WinNT/2K with NTFS, but you
did
not include the output of 'cygcheck' (as an attached file
'cygcheck.txt'),
so it's not possible to know for sure.
-----Original Message-----
Sent: Tuesday, December 03, 2002 3:36 PM
Subject: CRON Help -- Operation not permitted
Hello-
I have been trying to get CRON to work with cygwin and have
not been getting
to far and am now stumped and need a fresh set of eyes on my problem.
1.) I have started with the current versions of cygwin and cron.
923k 2002/11/27 d:\cygwin\bin\cygwin1.dll
DLL version: 1.3.17
<--snip-->
cron 3.0.1-7
2.) I have installed cron as a service with the following
command line. It
was verified that it made it into the services and running as SYSTEM.
cygrunsrv -I CygCron -p /usr/sbin/cron -a -D -e
"CYGWIN=tty ntsec"
Event Type: Error
Event Source: CygCron
Event Category: None
Event ID: 0
Date: 12/3/2002
Time: 12:53:44 PM
User: NT AUTHORITY\SYSTEM
Computer: ASPDATA1
The description for Event ID ( 0 ) in Source ( CygCron )
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
Win32 Process Id = 0x894 : Cygwin Process Id =
0x894 : starting
service `CygCron' failed: execv: 1, Operation not permitted.
seteuid: Invalid argument
seteuid: Invalid argument
seteuid: Invalid argument
The service has not been started.
RGIMBEL:unused_by_nt/2000/xp:11015:10512:Robert
Gimbel,U-DOMAIN\RGIMBEL,S-1-5-21-841769095-1711675769-18469526
04-1015:/home/
RGIMBEL:/bin/bash
I have also verified filesystem permissions so that both
SYSTEM and EVERYONE
have full control to the files in the cygwin directory..
Right or Wrong it
was something to try!
Any suggestions where I need to look to figure this lil bugger out?
Thanks for any help and suggestions,
Robert Gimbel
--
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/
Robert Gimbel
2002-12-03 21:52:26 UTC
Permalink
See below..

Thanks,
Rob
-----Original Message-----
From: Harig, Mark A. [mailto:***@idirect.net]
Sent: Tuesday, December 03, 2002 1:42 PM
To: Robert Gimbel; ***@cygwin.com
Subject: RE: CRON Help -- Operation not permitted


1. Did you read through /usr/doc/Cygwin/cron.README?

**RG** Yes, along with /usr/doc/cron and various hits off google.

2. What are the ownership and permissions of /var/cron and
/var/cron/tabs?

**RG** /var/cron
drwxrwxrwx+ 3 RGIMBEL Domain A 0 Aug 25 21:38 ./
drwxrwxrwx+ 6 Administ Domain A 0 Aug 25 21:38 ../
drwxrwxrwx+ 2 RGIMBEL Domain A 0 Dec 3 12:02 tabs/

3. It looks as though you might be running WinNT/2K with NTFS, but you
did
not include the output of 'cygcheck' (as an attached file
'cygcheck.txt'),
so it's not possible to know for sure.

**RG** For the record here it is:

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Tue Dec 03 14:49:02 2002

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 3

Path: d:\cygwin\usr\local\bin
d:\cygwin\bin
d:\cygwin\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
c:\Program Files\Dell\OpenManage\OMSA\bin
c:\Program Files\Dell\OpenManage\OMSA\
c:\Program Files\Dell\OpenManage\OMSA\help
c:\Program Files\Dell\OpenManage\oma\bin
c:\Program Files\Dell\OpenManage\LU\bin
c:\Program Files\Dell\OpenManage\oldiags\bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

CYGWIN = `tty notitle glob'
HOME = `d:\cygwin\home\RGIMBEL'
MAKE_MODE = `unix'
PWD = `/home/RGIMBEL'
USER = `RGIMBEL'

Use `-r' to scan registry

a: fd N/A N/A
c: hd NTFS 4094Mb 41% CP CS UN PA FC Dell Server
d: hd NTFS 99896Mb 79% CP CS UN PA FC
e: cd N/A N/A
f: hd NTFS 114470Mb 21% CP CS UN PA FC FireWire0
g: hd NTFS 76316Mb 9% CP CS UN PA FC FireWire1

d:\cygwin / system textmode
d:\cygwin/bin /usr/bin system textmode
d:\cygwin/lib /usr/lib system textmode
. /cygdrive user textmode,cygdrive

Found: d:\cygwin\bin\bash.exe
Found: d:\cygwin\bin\cat.exe
Not Found: cpp (good!)
Found: d:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Not Found: ld
Found: d:\cygwin\bin\ls.exe
Not Found: make
Found: d:\cygwin\bin\sh.exe

643k 2002/11/09 d:\cygwin\bin\cygcrypto.dll
45k 2001/04/25 d:\cygwin\bin\cygform5.dll
35k 2002/01/09 d:\cygwin\bin\cygform6.dll
19k 2002/02/20 d:\cygwin\bin\cyggdbm.dll
17k 2001/06/28 d:\cygwin\bin\cyghistory4.dll
20k 2002/10/10 d:\cygwin\bin\cyghistory5.dll
929k 2002/06/24 d:\cygwin\bin\cygiconv-2.dll
22k 2001/12/13 d:\cygwin\bin\cygintl-1.dll
28k 2002/09/20 d:\cygwin\bin\cygintl-2.dll
81k 2000/12/05 d:\cygwin\bin\cygitcl30.dll
35k 2000/12/05 d:\cygwin\bin\cygitk30.dll
26k 2001/04/25 d:\cygwin\bin\cygmenu5.dll
20k 2002/01/09 d:\cygwin\bin\cygmenu6.dll
156k 2001/04/25 d:\cygwin\bin\cygncurses++5.dll
175k 2002/01/09 d:\cygwin\bin\cygncurses++6.dll
226k 2001/04/25 d:\cygwin\bin\cygncurses5.dll
202k 2002/01/09 d:\cygwin\bin\cygncurses6.dll
15k 2001/04/25 d:\cygwin\bin\cygpanel5.dll
12k 2002/01/09 d:\cygwin\bin\cygpanel6.dll
40k 2001/11/21 d:\cygwin\bin\cygpcre.dll
39k 2001/11/21 d:\cygwin\bin\cygpcreposix.dll
22k 2002/06/09 d:\cygwin\bin\cygpopt-0.dll
108k 2001/06/28 d:\cygwin\bin\cygreadline4.dll
127k 2002/10/10 d:\cygwin\bin\cygreadline5.dll
169k 2002/11/09 d:\cygwin\bin\cygssl.dll
390k 2000/12/05 d:\cygwin\bin\cygtcl80.dll
5k 2000/12/05 d:\cygwin\bin\cygtclpip80.dll
10k 2000/12/05 d:\cygwin\bin\cygtclreg80.dll
623k 2000/12/05 d:\cygwin\bin\cygtk80.dll
50k 2002/03/12 d:\cygwin\bin\cygz.dll
923k 2002/11/27 d:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.17
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 67
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Wed Nov 27 18:54:29 EST 2002
Shared id: cygwin1S3


Cygwin Package Information
Package Version
_update-info-dir 00096-1
ash 20020731-1
base-files 1.1-1
base-passwd 1.0-1
bash 2.05b-8
bc 1.06-1
cron 3.0.1-7
crypt 1.0-1
cygrunsrv 0.95-1
cygutils 1.1.3-1
cygwin 1.3.17-1
diff 1.0-1
diffutils 2.8.1-1
expect 20010117-1
fileutils 4.1-1
findutils 4.1.7-4
gawk 3.1.1-5
gdbm 1.8.0-4
grep 2.5-1
gzip 1.3.3-4
initscripts 0.9-1
less 374-1
libiconv2 1.8-2
libintl1 0.10.40-1
libintl2 0.11.5-1
libncurses5 5.2-1
libncurses6 5.2-8
libpopt0 1.6.4-4
libreadline4 4.1-2
libreadline5 4.3-2
login 1.7-1
more 2.11o-1
ncurses 5.2-8
openssh 3.5p1-2
openssl 0.9.6g-2
openssl-devel 0.9.6g-2
pcre 3.7-1
perl 5.6.1-2
readline 4.3-2
sed 4.0.1-1
sh-utils 2.0-2
shutdown 1.2-2
ssmtp 2.38.7-3
sysvinit 2.84-2
tar 1.13.25-1
tcltk 20001125-1
termcap 20020930-1
terminfo 5.2-3
texinfo 4.2-4
textutils 2.0.21-1
unzip 5.50-1
vim 6.1-2
w32api 2.1-1
wget 1.8.2-1
which 1.5-1
zip 2.3-2
zlib 1.1.4-1

Use -h to see help about each section
-----Original Message-----
Sent: Tuesday, December 03, 2002 3:36 PM
Subject: CRON Help -- Operation not permitted
Hello-
I have been trying to get CRON to work with cygwin and have
not been getting
to far and am now stumped and need a fresh set of eyes on my problem.
1.) I have started with the current versions of cygwin and cron.
923k 2002/11/27 d:\cygwin\bin\cygwin1.dll
DLL version: 1.3.17
<--snip-->
cron 3.0.1-7
2.) I have installed cron as a service with the following
command line. It
was verified that it made it into the services and running as SYSTEM.
cygrunsrv -I CygCron -p /usr/sbin/cron -a -D -e
"CYGWIN=tty ntsec"
Event Type: Error
Event Source: CygCron
Event Category: None
Event ID: 0
Date: 12/3/2002
Time: 12:53:44 PM
User: NT AUTHORITY\SYSTEM
Computer: ASPDATA1
The description for Event ID ( 0 ) in Source ( CygCron )
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
Win32 Process Id = 0x894 : Cygwin Process Id =
0x894 : starting
service `CygCron' failed: execv: 1, Operation not permitted.
seteuid: Invalid argument
seteuid: Invalid argument
seteuid: Invalid argument
The service has not been started.
RGIMBEL:unused_by_nt/2000/xp:11015:10512:Robert
Gimbel,U-DOMAIN\RGIMBEL,S-1-5-21-841769095-1711675769-18469526
04-1015:/home/
RGIMBEL:/bin/bash
I have also verified filesystem permissions so that both
SYSTEM and EVERYONE
have full control to the files in the cygwin directory..
Right or Wrong it
was something to try!
Any suggestions where I need to look to figure this lil bugger out?
Thanks for any help and suggestions,
Robert Gimbel
--
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/
Harig, Mark A.
2002-12-04 17:10:56 UTC
Permalink
Post by Harig, Mark A.
2. What are the ownership and permissions of /var/cron and
/var/cron/tabs?
**RG** /var/cron
drwxrwxrwx+ 3 RGIMBEL Domain A 0 Aug 25 21:38 ./
drwxrwxrwx+ 6 Administ Domain A 0 Aug 25 21:38 ../
drwxrwxrwx+ 2 RGIMBEL Domain A 0 Dec 3 12:02 tabs/
Look in /etc/postinstall for a file named 'cron.sh.done'. It doesn't
look
as though it has been run. Here is a copy of it:

#!/bin/sh

set -x

if [ ! -d /var/cron ]
then
mkdir -p /var/cron
fi
chmod 1777 /var/cron

if [ ! -d /var/cron/tabs ]
then
mkdir /var/cron/tabs
fi
chmod 1777 /var/cron/tabs

You might try running the 'chmod' commands above manually.

Also, check the ownership/permissions of /var/cron/tabs/<user ID>.
Group membership on your <user ID>-specific tab file should be SYSTEM
(ID #18) and permissions should be set to 640, as described in
/usr/doc/Cygwin/cron.README.
Post by Harig, Mark A.
3. It looks as though you might be running WinNT/2K with NTFS, but you
did
not include the output of 'cygcheck' (as an attached file
'cygcheck.txt'),
so it's not possible to know for sure.
Yes, this confirms it. Cygwin is on d: and d: has NTFS on it.

For future reference, please include 'cygcheck.txt' as an attachment,
not inline text. Consider the case where you would like to search
the mail archives for, say, 'bash'. Then every message that includes
the 'cycheck' output inline will produce a (false or irrelevant) match.
If you include the output as a .txt attachment, then the contents will
not be include in a search of the archives.
Post by Harig, Mark A.
a: fd N/A N/A
c: hd NTFS 4094Mb 41% CP CS UN PA FC Dell Server
d: hd NTFS 99896Mb 79% CP CS UN PA FC
e: cd N/A N/A
f: hd NTFS 114470Mb 21% CP CS UN PA FC FireWire0
g: hd NTFS 76316Mb 9% CP CS UN PA FC FireWire1
d:\cygwin / system textmode
d:\cygwin/bin /usr/bin system textmode
d:\cygwin/lib /usr/lib system textmode
. /cygdrive user textmode,cygdrive
Loading...