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]

Re: Cron runs as SYSTEM, cron jobs run as administrator


On Apr 28 17:30, Sergio Valverde wrote:
> 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?

man cron

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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]