delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/15/22:19:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-Id: <3.0.5.32.20031015221506.0082ac50@incoming.verizon.net>
X-Sender: vze1u1tg AT incoming DOT verizon DOT net
Date: Wed, 15 Oct 2003 22:15:06 -0400
To: cygwin AT cygwin DOT com
From: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
Subject: Re: *** CreateFileMapping, Win32 error 5. Terminating.
In-Reply-To: <bm2u0b$nba$1@sea.gmane.org>
Mime-Version: 1.0

At 03:03 PM 10/9/2003 +0900, Dylan Cuthbert wrote:
>Hi there,
>
>I updated Cygwin yesterday and now I get this error whenever I try to do
>*anything* with cygwin:
>
>d:\cygwin\bin\bash.exe: *** CreateFileMapping, Win32 error 5.  Terminating.
>
>What's odd is this doesn't happen immediately, it happens after a cron task
>that uses rsync to make backups to an rsync server has run.  I think it
>probably has more to do with the cron daemon than rsync but god knows what
>the problem is.

This problem had now been explained with Dylan's help.

/etc/passwd had been edited to set the gid of a user to 544
although he was not a member of the Administrators group.
This is not permitted, but the only effect when launching Cygwin
from Windows is to create confusion, no errors occur.

However when running under cron, the user was really placed in the 544
group. Windows default policy is for objects created by Administrators
to only be accessible by Administrators and SYSTEM.
Thus the user running from the console had no access to objects created
by himself running under cron.

I will send a patch to move away from the Windows default policy.

Pierre


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