Attached is the cygcheck when run by service_cron.
Also, when we run the tasks as service_cron via command line the only error we're seeing is: cron : PID 2112 : (cdaapp) CAN'T OPEN (tabs/cdaapp), but if we're try starting the cron service we still get the error: cron : PID 3784 : starting service `cron' failed: execv: 128, Transport endpoint is not connected.
Igor recommended adding service_cron to the System group, but that group doesn't exist in the Windows environment (or at least I couldn't find it). Any suggestions as to how to do this if it is possible in the Windows env.? Currently the service_cron user is part of the Administrators, Users, and Terminal Service Users groups.
Thank you very much,
~ Anna
On Wed, 8 Sep 2004, Paul J. Ghosh wrote:
> Thank you to all who have replied. Enclosed find the following: > > - contents of crontab for user cdaapp - simple task to be executed > every minute for testing
Looks ok, but see below for permissions issues.
> - error encountered when starting cron as service_cron - includes > one as a dialog and another from the event viewer
Hmm, can you log in as service_cron and try running the cron service command ("/usr/sbin/cron -D") and "cygcheck -svr" from the command line? That would help answer a few questions...
> - test of task to be executed by cron done manually as user cdaapp > which succeeded
Again, you need to run this task as service_cron to get a meaningful result.
> - error encountered when successfully starting cron as Local > System but fails when it comes time to execute task - we are > aware of Local System account changes in W2K3 related to setuid > and were not expecting it to work
But the service started, which shows that it *might* be a permissions issue. Besides checking the applications, check all the relevant directories, and make sure service_cron has the execute permission on them (which will allow it to enter the directories and access the files in them), and the write permission to any directory where it needs to create files.
> - long listing of /bin /usr/sbin /var /var/cron /var/cron/tabs - > bin executable by all (755)
How about "ls -ld /bin /usr/sbin /var/log/cda"?
> /var/cron/tabs seems locked down
Actually, since you've started cron as different users, it's possible that SYSTEM owns some of the files, and service_cron has no access to them (see, for example, /var/cron/tabs/cdapp). This *may* be a bug in the crontab application (i.e., it may assume that SYSTEM will be the user running cron).
> - parts of /etc/passwd for user cdaapp - tried changing groups > 513/544 without any success
You may need to add service_cron to the SYSTEM group...
> - parts of /etc/group > > Regards, > > Paul J. Ghosh > > [snip] > > ########################################################### > ls -l /var > total 0 > drwxrwx---+ 3 devadm Users 0 Sep 1 09:19 cache > drwxrwxrwt+ 3 devadm Users 0 Oct 7 2003 cron > drwxrwx---+ 2 devadm Users 0 Sep 7 17:04 log ^^^ Aha. One problem here.
> drwxr-xr-x+ 2 SYSTEM root 0 Oct 7 2003 proftpd > drwxrwxrwx+ 2 devadm Users 0 Sep 8 14:36 run > drwxrwx---+ 2 devadm Users 0 Oct 7 2003 tmp > > [snip] > ########################################################### > ls -l /var/cron/tabs > total 1 > -rw-r----- 1 cdaapp SYSTEM 392 Sep 8 13:12 cdaapp ^^^ Another here. This file will be unreadable to a service running as service_cron, even if you manage to get it started.
> ########################################################### > cygcheck -svr > [snip]
In the future, please *attach* the output of "cygcheck -svr" as an uncompressed text attachment, instead of including it inline.
> 1126k 2004/05/26 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 > "cygwin1.dll" v0.0 ts=2004/5/25 21:07 > Cygwin DLL version info: > DLL version: 1.5.10
Probably not related to your problem, but why not upgrade to 1.5.11?
BTW, your /etc/passwd and /etc/group entries look ok. Igor
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Cygwin Configuration Diagnostics Current System Time: Thu Sep 09 09:10:30 2004
Windows .NET Server Ver 5.2 Build 3790
Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\blp\API\dde c:\WINNT\system32 c:\WINNT c:\WINNT\system32\WBEM c:\Program Files\Microsoft.NET\FrameworkSDK\Bin\ c:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\ c:\WINNT\Microsoft.NET\Framework\v1.0.3705\ c:\Program Files\Microsoft Visual Studio .NET\Vc7\bin\ c:\Program Files\Dell\OpenManage\oma\bin c:\Program Files\Dell\OpenManage\LU\bin c:\Program Files\Dell\OpenManage\oldiags\bin c:\Program Files\Dell\OpenManage\OMSA\bin c:\Program Files\Dell\OpenManage\Array Manager c:\blp\API c:\Program Files\Microsoft SQL Server\80\Tools\BINN
Output from C:\cygwin\bin\id.exe (nontsec) UID: 1013(service_cron) GID: 513(None) 513(None)
Output from C:\cygwin\bin\id.exe (ntsec) UID: 1013(service_cron) GID: 513(None) 0(root) 513(None) 544(Administrators) 555(Remote Desktop Users) 545(Users) 1006(OWS_674327061_browser)
SysDir: C:\WINNT\system32 WinDir: C:\WINNT
HOME = `C:\cygwin\home\service_cron' MAKE_MODE = `unix' PWD = `/home/service_cron' USER = `service_cron'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\service_cron\Application Data'
CLIENTNAME = `AGOLDBERG2'
CLUSTERLOG = `C:\WINNT\Cluster\cluster.log'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `DEVAPP1'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
DELLAGENTPATH = `C:\Program Files\Dell\OpenManage\OMSA\bin'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\service_cron'
HOSTNAME = `devapp1'
INCLUDE = `C:\Program Files\Microsoft.NET\FrameworkSDK\include\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\'
INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
LIB = `C:\Program Files\Microsoft.NET\FrameworkSDK\Lib\;C:\Program Files\Microsoft Visual Studio .NET\Vc7\lib\'
LOGONSERVER = `\\DEVAPP1'
MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OMPATH = `C:\Program Files\Dell\OpenManage\oma\bin;C:\Program Files\Dell\OpenManage\LU\bin;C:\Program Files\Dell\OpenManage\oldiags\bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0b04'
PROGRAMFILES = `C:\Program Files'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `RDP-Tcp#25'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\DOCUME~1\SERVIC~2\LOCALS~1\Temp\3'
TERM = `cygwin'
TMP = `C:\DOCUME~1\SERVIC~2\LOCALS~1\Temp\3'
USERDOMAIN = `DEVAPP1'
USERNAME = `service_cron'
USERPROFILE = `C:\Documents and Settings\service_cron'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'
HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/' cygdrive flags = 0x0000002a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
a: fd N/A N/A c: hd NTFS 10001Mb 59% CP CS UN PA FC Dell Server d: hd NTFS 24693Mb 22% CP CS UN PA FC D e: cd N/A N/A
C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . / system binmode,cygdrive
Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe
61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
"cygbz2-1.dll" v0.0 ts=2003/8/9 1:35
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
"cygcrypt-0.dll" v0.0 ts=2003/10/19 2:57
841k 2004/03/17 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
"cygcrypto-0.9.7.dll" v0.0 ts=2004/3/17 16:58
645k 2003/04/11 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
"cygcrypto.dll" v0.0 ts=2003/4/11 5:37
380k 2002/07/24 C:\cygwin\bin\cygdb-3.1.dll - os=4.0 img=1.0 sys=4.0
"cygdb-3.1.dll" v0.0 ts=2002/7/24 11:24
895k 2004/04/28 C:\cygwin\bin\cygdb-4.2.dll - os=4.0 img=1.0 sys=4.0
"cygdb-4.2.dll" v0.0 ts=2004/4/27 10:31
487k 2002/07/24 C:\cygwin\bin\cygdb_cxx-3.1.dll - os=4.0 img=1.0 sys=4.0
"cygdb_cxx-3.1.dll" v0.0 ts=2002/7/24 11:25
1156k 2004/04/28 C:\cygwin\bin\cygdb_cxx-4.2.dll - os=4.0 img=1.0 sys=4.0
"cygdb_cxx-4.2.dll" v0.0 ts=2004/4/27 10:35
155k 2004/01/07 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
"cygexpat-0.dll" v0.0 ts=2004/1/7 10:14
45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
"cygform5.dll" v0.0 ts=2001/4/25 0:28
35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
"cygform6.dll" v0.0 ts=2002/1/9 0:03
48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
"cygform7.dll" v0.0 ts=2003/8/9 4:25
28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm-3.dll" v0.0 ts=2003/7/20 2:58
30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm-4.dll" v0.0 ts=2003/8/10 21:12
19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm.dll" v0.0 ts=2002/2/19 21:05
15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 3:00
15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 21:13
107k 2004/07/06 C:\cygwin\bin\cyggettextlib-0-14-1.dll - os=4.0 img=1.0 sys=4.0
"cyggettextlib-0-14-1.dll" v0.0 ts=2004/7/6 12:56
17k 2004/07/06 C:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
"cyggettextpo-0.dll" v0.0 ts=2004/7/6 12:56
190k 2004/07/06 C:\cygwin\bin\cyggettextsrc-0-14-1.dll - os=4.0 img=1.0 sys=4.0
"cyggettextsrc-0-14-1.dll" v0.0 ts=2004/7/6 12:56
17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/6 22:34
29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
"cyghistory5.dll" v0.0 ts=2003/8/10 18:16
991k 2004/07/06 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
"cygiconv-2.dll" v0.0 ts=2004/7/6 13:10
22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
"cygintl-1.dll" v0.0 ts=2001/12/13 3:28
37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
"cygintl-2.dll" v0.0 ts=2003/8/10 16:50
54k 2004/07/06 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
"cygintl-3.dll" v0.0 ts=2004/7/6 12:51
144k 2004/08/29 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
"cygmagic-1.dll" v0.0 ts=2004/8/29 15:25
26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
"cygmenu5.dll" v0.0 ts=2001/4/25 0:27
20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
"cygmenu6.dll" v0.0 ts=2002/1/9 0:03
29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
"cygmenu7.dll" v0.0 ts=2003/8/9 4:25
15k 2003/11/20 C:\cygwin\bin\cygminires.dll - os=4.0 img=0.97 sys=4.0
"cygminires.dll" v0.0 ts=2003/11/19 19:55
156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/4/25 0:29
175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++6.dll" v0.0 ts=2002/1/9 0:03
226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses5.dll" v0.0 ts=2001/4/25 0:17
202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses6.dll" v0.0 ts=2002/1/9 0:03
224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
"cygncurses7.dll" v0.0 ts=2003/8/9 4:24
15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
"cygpanel5.dll" v0.0 ts=2001/4/25 0:27
12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
"cygpanel6.dll" v0.0 ts=2002/1/9 0:03
19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
"cygpanel7.dll" v0.0 ts=2003/8/9 4:24
62k 2003/12/11 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcre-0.dll" v0.0 ts=2003/12/11 11:01
63k 2003/04/11 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
"cygpcre.dll" v0.0 ts=2003/4/11 3:31
9k 2003/12/11 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcreposix-0.dll" v0.0 ts=2003/12/11 11:01
61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
"cygpcreposix.dll" v0.0 ts=2003/4/11 3:31
1061k 2004/08/19 C:\cygwin\bin\cygperl5_8_5.dll - os=4.0 img=1.0 sys=4.0
"cygperl5_8_5.dll" v0.0 ts=2004/8/19 12:54
22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
"cygpopt-0.dll" v0.0 ts=2002/6/9 0:45
108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/6 22:34
148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
"cygreadline5.dll" v0.0 ts=2003/8/10 18:16
171k 2004/03/17 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
"cygssl-0.9.7.dll" v0.0 ts=2004/3/17 16:58
165k 2003/04/11 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
"cygssl.dll" v0.0 ts=2003/4/11 5:37
61k 2003/12/04 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2003/12/3 21:03
1126k 2004/05/26 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2004/5/25 21:07
Cygwin DLL version info:
DLL version: 1.5.10
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 116
Shared data: 4
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: Tue May 25 22:07:00 EDT 2004
CVS tag: cr-0x5e6
Shared id: cygwin1S4
Cygwin Package Information
Last downloaded files to: D:\download
Last downloaded files from: ftp://sources-redhat.mirror.redwire.net/pub/sources.redhat.com/cygwin
Package Version _update-info-dir 00227-1 ash 20040127-1 base-files 3.0-3 base-passwd 1.1-1 bash 2.05b-16 bison 20030307-1 byacc 1.9-1 bzip2 1.0.2-5 clear 1.0-1 cpio 2.5-3 cron 3.0.1-12 crypt 1.1-1 ctags 5.5-4 cygrunsrv 1.0-1 cygutils 1.2.5-1 cygwin 1.5.10-3 cygwin-doc 1.3-7 diffutils 2.8.7-1 ed 0.2-1 editrights 1.01-1 emacs 21.2-13 emacs-el 21.2-13 enscript 1.6.3-3 expat 1.95.7-1 expect 20030128-1 file 4.10-1 fileutils 4.1-2 findutils 4.1.7-4 gawk 3.1.4-3 gdbm 1.8.3-7 gettext 0.14.1-1 grep 2.5-1 groff 1.18.1-2 gzip 1.3.5-1 less 381-1 libbz2_1 1.0.2-5 libdb3.1 3.1.17-2 libdb4.2 4.2.52-1 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-7 libgdbm3 1.8.3-3 libgdbm4 1.8.3-7 libgettextpo0 0.14.1-1 libiconv2 1.9.2-1 libintl1 0.10.40-1 libintl2 0.12.1-3 libintl3 0.14.1-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-4 libpcre 4.1-1 libpcre0 4.5-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-5 login 1.9-7 m4 1.4-1 man 1.5k-3 minires 0.97-1 mktemp 1.5-3 more 2.11o-1 ncurses 5.3-4 openssh 3.9p1-1 openssl 0.9.7d-1 openssl096 0.9.6j-1 pcre 4.5-1 pcre-doc 4.5-1 pdksh 5.2.14-3 perl 5.8.5-3 perl-libwin32 0.191-1 perl_manpages 5.8.5-3 proftpd 1.2.9-1 python 2.3.4-2 readline 4.3-5 rsync 2.6.2-2 sed 4.1.2-1 sh-utils 2.0.15-4 shutdown 1.4-1 ssmtp 2.60.9-3 tar 1.13.25-5 tcltk 20030901-1 termcap 20021106-2 terminfo 5.3_20030726-1 texinfo 4.2-4 textutils 2.0.21-1 time 1.7-1 unzip 5.50-5 vim 6.3-1 wget 1.9.1-1 which 1.5-2 whois 4.6.14-1 zip 2.3-6 zlib 1.2.1-1 Use -h to see help about each section
-- 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/