delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/09/17:08:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 9 Apr 2008 17:08:08 -0400 (EDT)
From: Vince LaMonica <vjl AT vjl DOT org>
To: cygwin AT cygwin DOT com
Subject: cron and Windows 2000
Message-ID: <Pine.VJL.4.64.0804091656430.23710@dargo.vjl.org>
X-Url: http://www.cullasaja.com/
X-Comment: The nearer your destination the more you're slip-sliding away
X-Message-Flag: Worried about Outlook viruses? Switch to Pine! Info @ http://vjl.org/pine/
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi all,

I recently updated cygwin on a Windows 2000 server box and I am now 
getting errors when running cron. It is the famous, "can't switch user 
context" message that I've seen a lot of posts about. The issue is that I 
am not running Windows 2003 server, but rather Windows 2000 server. 
Cygwin has been installed for 'all to run', and the cron jobs are/were 
created by user, "Administrator".

I have attempted to create a "cron_user" user, giving that user special 
permissions ["Act as part of the operating system", "replace a process 
level token", and "Increase quotas"]. After creating the user, I ran 
mkpasswd -l so now /etc/passwd has that user listed. When I attempt to su 
into that account so I can try and run cron-config under that account, I 
get the error, "su: incorrect password, or insufficient privileges to 
change user (see 
http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid): Permission 
denied"

I read the section, which is why I made sure that the 3 special 
permissions were granted to that user.

So I am a bit stuck: I need to be able to run cron as ...well, someone! I 
would perfer to run cron as Administrator, since that is the only user 
who logs into the console and the only user with a crontab. Is there 
something obvious I am missing?

Thank for any info y'all can provide,

/vjl/

-- 
Vince J. LaMonica       Knowledge is knowing a street is one way.
vjl AT cullasaja DOT com  <*>  Wisdom is still looking in both directions.

            Donate today, please: http://www.cancer.org/

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019