Cron is running as SYSTEM. Is it possible to run cron jobs as SYSTEM too, instead of administrator (id 500)?
ps -ef UID PID PPID TTY STIME COMMAND SYSTEM 12004 1 ? Apr 20 /usr/bin/cygrunsrv SYSTEM 12684 12004 ? Apr 20 /usr/sbin/sshd Administ 6068 1 con 11:10:47 /usr/bin/bash SYSTEM 11776 1 ? 15:37:59 /usr/bin/cygrunsrv SYSTEM 1488 11776 ? 15:37:59 /usr/sbin/cron Administ 16488 1 con 15:38:11 /usr/bin/bash Administ 16992 1 con 15:38:50 /usr/bin/bash SYSTEM 6668 1488 ? 15:40:00 /usr/sbin/cron Administ 11288 6668 ? 15:40:00 /usr/bin/sh Administ 11756 16488 con 15:40:00 /usr/bin/ps process 11288 is a script running as a cron job but UID is Administ (id 500), while PPID 6668 (cron) is UID SYSTEM (id 18). When I run the same script from command line, it runs as id 10500 (Administrator). I've already searched the mailing lists. Any hint? Thanks, Sergio Valverde <<cygcheck.txt>> <<cron_diagnose.txt>> <<group.txt>> <<passwd.txt>>
Cygwin Win95/NT Configuration Diagnostics Current System Time: Wed Apr 28 16:55:15 2004 Windows 2000 Server Ver 5.0 Build 2195 Service Pack 3 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin e:\oracle\ora902\bin c:\Program Files\Oracle\jre\1.3.1\bin c:\Program Files\Oracle\jre\1.1.8\bin e:\Program Files\IBM\MQSeries\Java\lib e:\jdk1.3.1_08\bin e:\oracle\ora81\bin c:\Program Files\Oracle\jre\1.1.7\bin e:\Perl\bin\ f:\Perl\bin\ c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem c:\Program Files\Symantec\pcAnywhere\ c:\Program Files\BMC Software\CONTROL-M Agent\EXE c:\Program Files\BMC Software\CONTROL-M Agent\UTIL e:\Program Files\IBM\MQSeries\bin e:\Program Files\IBM\MQSeries\tools\c\samples\bin Output from C:\cygwin\bin\id.exe (nontsec) UID: 10500(Administrator) GID: 10513(Domain Users) 10513(Domain Users) Output from C:\cygwin\bin\id.exe (ntsec) UID: 10500(Administrator) GID: 10513(Domain Users) 0(root) 544(Administrators) 545(Users) 10512(Domain Admins) 10513(Domain Users) 10519(Enterprise Admins) 12001(Exchange Administrators) 14716(Exchange Domain Servers) 14717(Exchange Services) 15723(Gr. Telefonia (SP)) 10520(Group Policy Creator Owners) 10518(Schema Admins) SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME = `C:\cygwin\home\Administrator' MAKE_MODE = `unix' PWD = `/tmp' USER = `Administrator' Use `-r' to scan registry a: fd N/A N/A c: hd NTFS 4000Mb 76% CP CS UN PA FC WINDOWS2000 d: cd N/A N/A e: hd NTFS 8000Mb 67% CP CS UN PA FC Local_E g: hd NTFS 5297Mb 23% CP CS UN PA FC Local_G m: net NTFS 121342Mb 88% CP CS UN PA FC Storage F: t: net NTFS 121342Mb 88% CP CS UN PA FC Storage F: z: net N/A N/A C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode C:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts 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\find.exe Found: C:\cygwin\bin\gcc.exe Not Found: gdb Found: C:\cygwin\bin\grep.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 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 7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll 841k 2004/03/17 C:\cygwin\bin\cygcrypto-0.9.7.dll 831k 2003/09/20 C:\cygwin\bin\cygdb-4.1.dll 1080k 2003/09/20 C:\cygwin\bin\cygdb_cxx-4.1.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 35k 2002/01/09 C:\cygwin\bin\cygform6.dll 48k 2003/08/09 C:\cygwin\bin\cygform7.dll 28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll 30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll 19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll 15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll 15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll 69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll 12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll 134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll 29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll 958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll 37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll 29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll 15k 2003/11/20 C:\cygwin\bin\cygminires.dll 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll 224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll 19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll 62k 2003/12/11 C:\cygwin\bin\cygpcre-0.dll 63k 2003/04/11 C:\cygwin\bin\cygpcre.dll 9k 2003/12/11 C:\cygwin\bin\cygpcreposix-0.dll 61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll 1049k 2003/11/07 C:\cygwin\bin\cygperl5_8_2.dll 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll 148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll 171k 2004/03/17 C:\cygwin\bin\cygssl-0.9.7.dll 61k 2003/12/04 C:\cygwin\bin\cygz.dll 1100k 2004/03/19 C:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.5.9 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 112 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 Mar 18 23:05:18 EST 2004 Shared id: cygwin1S4 Cygwin Package Information Package Version _update-info-dir 00227-1 ash 20040127-1 base-files 2.6-1 base-passwd 1.1-1 bash 2.05b-16 bc 1.06-1 binutils 20040312-1 bzip2 1.0.2-5 cron 3.0.1-11 crypt 1.1-1 cygrunsrv 0.98-3 cygwin 1.5.9-1 diffutils 2.8.4-1 editrights 1.01-1 fileutils 4.1-2 findutils 4.1.7-4 gawk 3.1.3-4 gcc 3.3.1-3 gcc-mingw-core 20031020-1 gdbm 1.8.3-7 grep 2.5-1 groff 1.18.1-2 gzip 1.3.5-1 less 381-1 libbz2_1 1.0.2-5 libdb4.1 4.1.25-1 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-7 libgdbm3 1.8.3-3 libgdbm4 1.8.3-7 libgettextpo0 0.12.1-3 libiconv2 1.9.1-3 libintl1 0.10.40-1 libintl2 0.12.1-3 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-4 libpcre 4.1-1 libpcre0 4.5-1 libreadline4 4.1-2 libreadline5 4.3-5 login 1.9-7 make 3.80-1 man 1.5k-3 mingw-runtime 3.2-1 minires 0.97-1 mktemp 1.5-3 more 2.11o-1 ncftp 3.1.4-1 ncurses 5.3-4 openssh 3.8p1-1 openssl 0.9.7d-1 perl 5.8.2-1 perl-libwin32 0.191-1 readline 4.3-5 sed 4.0.9-2 sh-utils 2.0.15-4 shutdown 1.4-1 tar 1.13.25-5 termcap 20021106-2 terminfo 5.3_20030726-1 texinfo 4.2-4 textutils 2.0.21-1 unzip 5.50-5 vim 6.2.098-1 w32api 2.5-1 which 1.5-2 zip 2.3-6 zlib 1.2.1-1 Use -h to see help about each section
cron_diagnose.sh 1.5 This script did not find any errors in your crontab setup. If you are still unable to get cron to work, then try shutting down the cron service, uninstalling it, reinstalling it, and restarting it. The following commands will do that: $ cygrunsrv --stop cron $ cygrunsrv --remove cron $ cygrunsrv --install cron -p /usr/sbin/cron -a -D $ cygrunsrv --start cron If the cron service does not start, try deleting the file /var/run/cron.pid and then repeating the commands above. If none of this fixes the problem, then report your problem to [EMAIL PROTECTED] Please include a copy of your crontab, ('crontab -l') and the output of 'cygcheck -srv > cygcheck.txt'. Please include the generated files 'cygcheck.txt' *as an attachment*, and NOT in the body of the mail message.
root:S-1-5-32-544:0: SYSTEM:S-1-5-18:18: None:S-1-5-21-1708537768-725345543-1417001333-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: mqm:S-1-5-21-1708537768-725345543-1417001333-1001:1001: Domain Admins:S-1-5-21-1229272821-583907252-1801674531-512:10512: Domain Computers:S-1-5-21-1229272821-583907252-1801674531-515:10515: Domain Controllers:S-1-5-21-1229272821-583907252-1801674531-516:10516: Domain Guests:S-1-5-21-1229272821-583907252-1801674531-514:10514: Domain Users:S-1-5-21-1229272821-583907252-1801674531-513:10513:
SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator:unused_by_nt/2000/xp:500:513:U-ITAIPAVA\Administrator,S-1-5-21-1708537768-725345543-1417001333-500:/home/Administrator:/bin/bash Guest:unused_by_nt/2000/xp:501:513:U-ITAIPAVA\Guest,S-1-5-21-1708537768-725345543-1417001333-501:/home/Guest:/bin/bash IUSR_ITAIPAVA:unused_by_nt/2000/xp:1009:513:Internet Guest Account,U-ITAIPAVA\IUSR_ITAIPAVA,S-1-5-21-1708537768-725345543-1417001333-1009:/home/IUSR_ITAIPAVA:/bin/bash IWAM_ITAIPAVA:unused_by_nt/2000/xp:1010:513:Launch IIS Process Account,U-ITAIPAVA\IWAM_ITAIPAVA,S-1-5-21-1708537768-725345543-1417001333-1010:/home/IWAM_ITAIPAVA:/bin/bash mqcetip:unused_by_nt/2000/xp:1007:513:mqcetip,U-ITAIPAVA\mqcetip,S-1-5-21-1708537768-725345543-1417001333-1007:/home/mqcetip:/bin/bash MUSR_MQADMIN:unused_by_nt/2000/xp:1002:513:MUSR_MQADMIN,U-ITAIPAVA\MUSR_MQADMIN,S-1-5-21-1708537768-725345543-1417001333-1002:/home/MUSR_MQADMIN:/bin/bash TsInternetUser:unused_by_nt/2000/xp:1000:513:TsInternetUser,U-ITAIPAVA\TsInternetUser,S-1-5-21-1708537768-725345543-1417001333-1000:/home/TsInternetUser:/bin/bash Administrator:unused_by_nt/2000/xp:10500:10513:Administrator - (SP),U-CETIP\Administrator,S-1-5-21-1229272821-583907252-1801674531-500:/home/Administrator:/bin/bash
-- 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/