delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/05/16:41:07

X-Spam-Check-By: sourceware.org
Message-ID: <4e41f5c20703051340i506b26b2w4611324c58fa07a@mail.gmail.com>
Date: Mon, 5 Mar 2007 14:40:37 -0700
From: "Morgan Gangwere" <0 DOT fractalus AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: why is my gid different when I run my script under cron?
In-Reply-To: <eshoem$5ka$1@sea.gmane.org>
MIME-Version: 1.0
References: <eshoem$5ka$1 AT sea DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

you have to su as _you_ or have scripts that can do the tasks as root
(ie "su root << rootpass")

On 3/5/07, Jerome Fong <jfong AT successmetricsinc DOT com> wrote:
> Hi there,
>
> I have a script that works interactively.  However when I schedule it to
> run with cron, I encounter permission and environment issues.  I checked
> and even though my cron process has my user id, my group id is
> different.   Interactively, I have a gid=10545(mkgroup-l-d), but in my
> cron process, my gid=513(None).
>
> Is there something I need to set up for cron to include my group?  Is
> there something else I need to set so cron picks up my environment
> variables like PATH?
>
> thanks,
>
> Jerome
>
>
> --
> 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/
>
>


-- 
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

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