Cron runs as SYSTEM, cron jobs run as administrator
Sergio Valverde
SergioValverde@cetip.com.br
Wed Apr 28 20:46:00 GMT 2004
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>>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040428/cd9de6ce/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cron_diagnose.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040428/cd9de6ce/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: group.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040428/cd9de6ce/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: passwd.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040428/cd9de6ce/attachment-0003.txt>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list