From: Cyrille Lefevre <cyrille.lefevre-lists@laposte.net>
To: cygwin@cygwin.com
Subject: Re: cron error can't switch user context
Date: Fri, 16 Apr 2010 22:06:00 -0000 [thread overview]
Message-ID: <4BC8DF49.8060501@laposte.net> (raw)
In-Reply-To: <20100416184243.GX5284@proxix.com>
Le 16/04/2010 20:42, Tom Schutter a écrit :
>
> I have number of machines running Windows2003 and Cygwin 1.7.5. On most cron works. But on one (lemon) it does not. It appears that on lemon cron cannot switch the user context.
>
> Cronevents on lemon shows:
>
> 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (tschutter) CMD (/usr/bin/python /cygdrive/f/production-sync/production-sync.py)
> 2010/04/15 17:19:01 [SYSTEM] /usr/sbin/cron: PID 656: (CRON) error (can't switch user context)
>
> /var/log/cron.log is empty on all machines.
let's configure syslogd from inetutils to have some logs :
syslogd-config --yes
you may need to configure sshd before to have the right permissions
on /var/empty, etc. (ssh-host-config --yes --user "${CYGSERVER_USER}"
--pwd "${CYGSERVER_PASS}" where CYGSERVER_USER=cyg_server and
CYGSERVER_PASS=whatever you want)
PS : well, I prefer the legacy one than the ng one...
PS2: IMHO, linux^Wcygwin cron(^W^Wlinux) sucks bcoz it doesn't report on
tasks return codes as a true unix does... (i.e.: < root 1331 c Tue Feb
2 17:32:36 MET 2010 rc=1)
> The cron daemon is running as SYSTEM on all machines.
2K3 may need to be running under cyg_server ?
to configure cron, I use :
cron-config << EOF
yes
no
no
no
${CYGSERVER_PASS}
${CYGSERVER_PASS}
no
EOF
PS : doesn't support csih yet :-(
> cyglsa is running on all machines.
did you reboot after configuring cyglsa ?
> cygserver is not running on any machine.
2K3 may need cygserver as well as passwd -D?
> I have rerun cron-config, rebooted, etc.
well, ok, you surelly have rebooted :-)
> I have searched the net, but most solutions seem to involve Cygwin 1.5 and no cyglsa.
>
> Does anyone have any suggestions?
done.
Cordialement,
Cyrille Lefevre
--
mailto:Cyrille.Lefevre-lists@laposte.net
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2010-04-16 22:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-16 18:42 Tom Schutter
2010-04-16 19:29 ` Tom Schutter
2010-04-16 21:16 ` Pierre A. Humblet
2010-04-19 23:07 ` Tom Schutter
2010-04-16 22:06 ` Cyrille Lefevre [this message]
2010-04-16 22:09 ` Cyrille Lefevre
2010-04-16 23:43 ` Tom Schutter
2010-04-18 0:35 ` Cyrille Lefevre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BC8DF49.8060501@laposte.net \
--to=cyrille.lefevre-lists@laposte.net \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).