delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/23/12:25:22

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: <3F980072.2C88C726@phumblet.no-ip.org>
Date: Thu, 23 Oct 2003 12:23:14 -0400
From: "Pierre A. Humblet" <pierre AT phumblet DOT no-ip DOT org>
Reply-To: Pierre DOT Humblet AT ieee DOT org
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Brian Ford <ford AT vss DOT fsi DOT com>
CC: Pierre DOT Humblet AT ieee DOT org, Jeremy A Redburn <jredburn AT wso DOT williams DOT edu>,
cygwin AT cygwin DOT com
Subject: Re: Problem w/ cron
References: <Pine DOT LNX DOT 4 DOT 58 DOT 0310221638040 DOT 13532 AT olga DOT williams DOT edu>
<3F96F9F3 DOT 74262202 AT phumblet DOT no-ip DOT org> <Pine DOT LNX DOT 4 DOT 58 DOT 0310231010520 DOT 4183 AT olga DOT williams DOT edu>
<3F97E920 DOT 584A8874 AT phumblet DOT no-ip DOT org> <Pine DOT GSO DOT 4 DOT 56 DOT 0310231055440 DOT 823 AT eos>

Brian Ford wrote:
> 
> On Thu, 23 Oct 2003, Pierre A. Humblet wrote:
> 
> > OK, thanks, but you are not answering my question about ls -ln and not
> > following http://cygwin.com/problems.html
> >
> Well, he sort of did both here:
> 
> http://www.cygwin.com/ml/cygwin/2003-10/msg01482.html
> 
> did you miss that, or maybe you could be more clear about what is still
> missing, as I don't understand.

It's OK now, I got it late.

The password entry is
Administrator:unused_by_nt/2000/xp:500:513:U-IBM-VNYWG3WG0KP\Administrator,
S-1-5-21-1844237615-1563985344-1060284298-500:/cygdrive/c/Documents
and Settings/Administrator.IBM-NMR31UMZNAJ:/bin/bash

COMPUTERNAME = `IBM-77F39HCSY41'
HOMEPATH = `\Documents and Settings\Administrator.IBM-NMR31UMZNAJ
LOGONSERVER = `\\IBM-77F39HCSY41'
USERDOMAIN = `IBM-77F39HCSY41'
USERNAME = `Administrator'

Jeremy is the beneficiary/victim of name aliasing.

He is logged in Windows as IBM-77F39HCSY41\Administrator,
for which there is no password entry. Normally Cygwin would then
create a default entry and assign the group 'mkpasswd', but for 
historical reasons (Read: if we change that, users will complain)
it discovers that there is a user named Administrator at it uses 
that password entry (that's useful to share HOME between users 
with the same name).

However when cron runs, it looks up Administrator in /etc/passwd
and it finds IBM-VNYWG3WG0KP\Administrator. cron impersonates
that Administrator, which is another user without access rights 
to the file in question. 

So the fix involves running mkpasswd -l and adding an entry for 
IBM-77F39HCSY41\Administrator. It's likely that it's also necessary
to run mkgroup -l to add local groups.

It's OK to keep the entry for IBM-VNYWG3WG0KP\Administrator, but the
two Administrator entries must have different cygwin user names
(the first field) because crontabs are identified by cygwin user names
and they must be unique to avoid yet another aliasing problem.

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