This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cron-config bug


Hi,

the bug is :

2008/09/08 06:00:02 [SYSTEM] /usr/sbin/cron: PID 4032: (CRON) error (can't switch user context)

the problem is about cron-config under windows vista which install the cron service under the SYSTEM account instead od cyg_server account.

uname -a is :

CYGWIN_NT-5.1 pcvista 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

nt2003 is not set to yes while it should.

the failing test is in get_NT() :

[ "$nt" \> 5.1 ] && nt2003=yes

it should be :

[ "$nt" \> 5.0 ] && nt2003=yes

or

[ "$nt" = 5.1 -o "$nt" \> 5.1 ] && nt2003=yes

PS : Two lines above, nt2003 is mispelled as nt2004="" !

Regards,

Cyrille Lefevre
--
mailto:Cyrille.Lefevre-lists@laposte.net
Current version
-r-xr-x---+ 1 Cyrille Utilisateurs 4959 Jun 13  2007 /usr/share/doc/Cygwin/cron-4.1-6.README

Running crons:
     8788   10208    8788       8212    ? 1014 22:59:27 /usr/sbin/cron
I    4816    8788    8788       4816    ? 1014 23:00:01 /usr/sbin/cron

Sendmail:
lrwxrwxrwx 1 Cyrille None 19 Sep  8 04:06 /usr/sbin/sendmail -> /usr/sbin/ssmtp.exe

Crontabs:
-rw-r----- 1 Cyrille root 399 Sep  8 22:53 /var/cron/tabs/Cyrille

cron.log:
-rw-r--r-- 1 cyg_server None 0 Sep  8 22:59 /var/log/cron.log

cron.pid:
-rw-r--r-- 1 cyg_server None 5 Sep  8 22:59 /var/run/cron.pid

Crontab:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.yfO1OdJOnA installed on Mon Sep  8 22:53:30 2008)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
MAILTO=xxxxxxxxxxxxxxxxxxxxx@yyyyyyyyyyy

0 2-18/4,18-23,0-2 * * 1-5 /usr/local/bin/imapfilter >> /var/log/imapfilter.log 2>&1
0 * * * 6-7 /usr/local/bin/imapfilter >> /var/log/imapfilter.log 2>&1

Windows Application Events log:
...
2008/09/08 02:44:41 [Cyrille] /usr/Sbin/cron: PID 7652: (CRON) STARTUP (V5.0)
2008/09/08 03:52:02 [Cyrille] crontab: PID 4532: (Cyrille) LIST (Cyrille)
2008/09/08 03:58:53 [SYSTEM] /usr/sbin/cron: PID 7820: (CRON) STARTUP (V5.0)
2008/09/08 03:58:54 [SYSTEM] cron: PID 6648: `cron' service started
2008/09/08 04:00:24 [Cyrille] crontab: PID 7136: (Cyrille) REPLACE (Cyrille)
2008/09/08 06:00:02 [SYSTEM] /usr/sbin/cron: PID 4032: (Cyrille) CMD (/usr/local/bin/imapfilter >> /var/log/imapfilter.log 2>&1)
2008/09/08 06:00:02 [SYSTEM] /usr/sbin/cron: PID 4032: (CRON) error (can't switch user context)
...

Cygcheck:

Cygwin Configuration Diagnostics
Current System Time: Mon Sep 08 23:00:04 2008

Windows XP Media Center Edition Ver 5.1 Build 2600 Service Pack 2

Path:	C:\cygwin\home\Cyrille\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	c:\Windows\system32
	c:\Windows
	c:\Windows\System32\Wbem
	C:\cygwin\usr\local\wbin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1000(Cyrille)   GID: 513(None)
0(root)              513(None)            544(Administrateurs)
545(Utilisateurs)    1005(Netmon Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1000(Cyrille)   GID: 513(None)
0(root)              513(None)            544(Administrateurs)
545(Utilisateurs)    1005(Netmon Users)

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'Cyrille'
PWD = '/home/Cyrille'
CYGWIN = 'ntsec'
HOME = '/home/Cyrille'
MAKE_MODE = 'unix'

HOMEPATH = '\Users\Cyrille'
APPDATA = 'C:\Users\Cyrille\AppData\Roaming'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
SSH_AGENT_PID = '8128'
HOSTNAME = 'pcvista'
MM_CHARSET = 'iso-8859-1'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 15 Stepping 7, GenuineIntel'
TERM = 'cygwin'
WINDIR = 'C:\Windows'
_XPG = '1'
PUBLIC = 'C:\Users\Public'
MORE = '-cs'
PROGRAMDATA = 'C:\ProgramData'
USERDOMAIN = 'pcvista'
ALLUSERSPROFILE = 'C:\ProgramData'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
TEMP = '/cygdrive/c/Users/Cyrille/AppData/Local/Temp'
ENV = '/home/Cyrille/.kshrc'
USERNAME = 'Cyrille'
PROCESSOR_LEVEL = '6'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
__COMPAT_LAYER = 'WinXPSp2 '
USERPROFILE = 'C:\Users\Cyrille'
LOGONSERVER = '\\PCVISTA'
!C: = 'C:\cygwin\bin'
LOCALAPPDATA = 'C:\Users\Cyrille\AppData\Local'
PROCESSOR_ARCHITECTURE = 'x86'
SHLVL = '2'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
COMSPEC = 'C:\Windows\system32\cmd.exe'
PROMPT = '$P$G'
SYSTEMROOT = 'C:\Windows'
TMP = '/cygdrive/c/Users/Cyrille/AppData/Local/Temp'
PROCESSOR_REVISION = '0f07'
PRINTER = 'HP LaserJet 4050 Series PS'
PROGRAMFILES = 'C:\Program Files'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
NUMBER_OF_PROCESSORS = '4'
SESSIONNAME = 'Console'
COMPUTERNAME = 'PCVISTA'
_ = '/usr/bin/cygcheck'

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'
  cygdrive flags = 0x00000022
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

c:  hd  NTFS    204800Mb  63% CP CS UN PA FC     BOOT500G0
...

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  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
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\crontab.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Found: C:\cygwin\bin\perl.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe

  335k 2005/01/19 C:\cygwin\usr\local\bin\cygmp3lame-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp3lame-0.dll" v0.0 ts=2005/1/19 21:14
   61k 2008/04/01 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2008/4/1 5:37
    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 9:57
 1057k 2008/06/09 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2008/6/9 18:33
  943k 2007/12/17 C:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 14:12
 1296k 2007/12/17 C:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 14:12
  118k 2008/05/09 C:\cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2008/5/9 6:03
   40k 2006/11/15 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2006/11/15 8:06
   19k 2006/11/19 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2006/11/19 9:18
    8k 2006/11/19 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2006/11/19 9:18
   25k 2008/01/04 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2008/1/4 4:31
  271k 2007/08/24 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2007/8/24 9:24
  976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2006/10/23 1:44
   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 23:50
   31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/20 3:04
   31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2006/10/23 2:12
  132k 2008/06/26 C:\cygwin\bin\cyglua-5-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyglua-5-1.dll" v0.0 ts=2008/6/26 3:09
   21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2006/11/15 8:05
   20k 2006/12/21 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.1 sys=4.0
                  "cygminires.dll" v0.0 ts=2006/12/21 6:07
   67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2006/11/15 8:13
  237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2006/11/15 8:02
   12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2006/11/15 8:04
  151k 2008/07/08 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2008/7/8 21:30
  303k 2008/07/08 C:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2008/7/8 21:30
    7k 2008/07/08 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2008/7/8 21:30
 1543k 2008/07/03 C:\cygwin\bin\cygperl5_10.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_10.dll" v0.0 ts=2008/6/30 18:06
   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 7:45
  155k 2008/01/04 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2008/1/4 4:31
  219k 2008/06/09 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2008/6/9 18:33
   22k 2008/02/24 C:\cygwin\bin\cygwrap-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwrap-0.dll" v0.0 ts=2008/2/23 8:03
   65k 2006/10/16 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2006/10/16 3:10
 1829k 2008/06/12 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2008/6/12 19:35
    Cygwin DLL version info:
        DLL version: 1.5.25
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 156
        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: Thu Jun 12 19:34:46 CEST 2008
        CVS tag: cr-0x5f1
        Shared id: cygwin1S4


Service             : cron
Display name        : Cron daemon
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/cron -n
stdin path          : /dev/null
stdout path         : /var/log/cron.log
stderr path         : /var/log/cron.log
Environment         : CYGWIN="ntsec smbntsec" 
Process Type        : Own Process
Startup             : Automatic
Account             : .\cyg_server


Cygwin Package Information
Last downloaded files to: E:\Download\Unix\cygwin
Last downloaded files from: E:\Download\Unix\cygwin

Package              Version
_update-info-dir     00751-1
alternatives         1.3.30c-2
ash                  20040127-4
base-files           3.7-1
base-passwd          2.2-1
bash                 3.2.39-20
bc                   1.06-2
binutils             20080624-2
bzip2                1.0.5-2
chere                1.0-1
coreutils            6.10-1
cron                 4.1-6
crypt                1.1-1
csih                 0.1.8-1
cygrunsrv            1.34-1
cygutils             1.3.2-1
cygwin               1.5.25-15
cygwin-doc           1.4-4
diffutils            2.8.7-1
e2fsprogs            1.35-3
editrights           1.01-2
expat                2.0.1-1
findutils            4.4.0-3
gawk                 3.1.6-1
gcc                  3.4.4-3
gcc-core             3.4.4-3
gcc-g++              3.4.4-3
gcc-mingw-core       20050522-1
gcc-mingw-g++        20050522-1
grep                 2.5.1a-4
groff                1.19.2-2
gzip                 1.3.12-2
ical                 2.3.1-EL-1
less                 382-1
libbz2_1             1.0.5-2
libdb4.5             4.5.20.2-2
libexpat1            2.0.1-1
libexpat1-devel      2.0.1-1
libgdbm4             1.8.3-8
libiconv2            1.11-1
libintl2             0.12.1-3
libintl3             0.14.5-1
libintl8             0.15-1
libncurses8          5.5-3
libpcre0             7.7-2
libpopt0             1.6.4-4
libreadline6         5.2.12-10
libwrap0             7.6-4
login                1.9-8
lua                  5.1.3-2
make                 3.81-2
man                  1.6e-1
mingw-runtime        3.14-1
minires              1.01-1
openssh              5.1p1-3
openssl              0.9.8h-1
pdksh                5.2.14-3
perl                 5.10.0-5
rebase               2.4.4-1
run                  1.1.10-1
sed                  4.1.5-2
ssmtp                2.62-1
tar                  1.20-1
tcltk                20080420-1
termcap              20050421-1
terminfo             5.5_20061104-1
texinfo              4.8a-1
tzcode               2008a-1
util-linux           2.13.1-2
vim                  7.2-1
w32api               3.11-1
which                2.19-1
zlib                 1.2.3-2
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]