delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/10/14:54:02

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=iTQlIkrX77+sypqmjILHc4vTY+QsW+ynUqZs405JLBJ
Q6rXMnYRrEI7iyqvdXmGJV+kL6QK4Q6fRZoAyEOgbLo34eE+s4YlOo0joi9o2XTR
DCWz/oK+eP/oz9MwLgHlHa9FDVa6CzF9vBC05ZK1jYZ16Paf4WfUcNm6+hyHRfzo
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
s=default; bh=wVFQISPjJ5SHe4hAz+0nS5uFESA=; b=WSPsl+gJK2++o4EmN
+CrBy7tdD/F4odrqeIk5xE8VHxE1FN1oS9RtU5pUXzFxbOzwoEntZpK3TyhQ4Txb
ackUaROVvRZ5zImsq9NDxGIZJTc1+RlgW28x9h3+qUUQx3Q/HhI7JqvE9zNznl+a
Lv65KBUW8h7UNQ52UnfD7sE7rk=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: vms173025pub.verizon.net
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.1 cv=TstRX4Tk c=1 sm=1 tr=0 a=++QE0vWJ+/OcbE0B+pKMCw==:117 a=qpBMU8TwT7QA:10 a=kj9zAlcOel0A:10 a=o83nqyVRAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=w_pzkKWiAAAA:8 a=9asQuFXuWAd1LxS0K_sA:9 a=CjuIK1q_8ugA:10 a=B5ac6ioVYBgA:10
From: "Pierre A. Humblet" <Pierre DOT Humblet AT ieee DOT org>
To: "'The Cygwin Mailing List'" <cygwin AT cygwin DOT com>
References: <20141107091107 DOT GS28195 AT calimero DOT vinschen DOT de>
In-reply-to: <20141107091107.GS28195@calimero.vinschen.de>
Subject: RE: TEST RELEASE: Cygwin 1.7.33-0.8
Date: Mon, 10 Nov 2014 14:53:11 -0500
Message-id: <001e01cffd1f$fe393810$faaba830$@ieee.org>
MIME-version: 1.0

> -----Original Message-----
> From: Corinna Vinschen
> Sent: Mon, 10 Nov 2014 12:09:17 +0100
> On Nov  7 13:04, Pierre A. Humblet wrote:
> > > -----Original Message-----
> > > From: Pierre A. Humblet 
> > > Sent: Thursday, November 06, 2014 16:09
> > > 
> > > > -----Original Message-----
> > > > > From: Corinna Vinschen
> > > > Sent: Thursday, November 06, 2014 13:51
> > > >
> > > > On Nov  6 13:38, Kelley Cook wrote:
> > > > > On Thu, Nov 6, 2014 at 10:52 AM, Corinna Vinschen wrote:
> > > > > > Hi Cygwin friends and users,
> > > > > >
> > > > > >
> > > > > > I just released a 7th TEST version of the next upcoming Cygwin
> > > > > > release, 1.7.33-0.7.
> > > > > >
> > > > >
> > > > > I discovered that /usr/bin/cron-config which is part of the cron
> > > > > package will need to be updated as it attempts to parse /etc/group
.
> > >
> > > > Right, it should use getent instead.  Pierre?
> > 
<snip>
> > I just realized that deleting the /etc/passwd file in existing domain
> > systems may change usernames, which will break cron and other programs
> > that use files named after usernames. Also the (local) privileged
> > username will change.

> Yes.  Is there a way to accommodate that?  Maybe a postinstall script
> checking for existing user cron files and renaming them if required?

That's possible but it must be a postinstall than runs when an updated
Cygwin is installed (or deinstalled), not when cron is, except if we try to
synchronize both.

> The privileged user name shouldn't matter much after configuration.

Agreed, but see below

> For now I have made the following changes to cron-config:
>   calling getent
>   checking if /etc/passwd exists
>   dealing with the extended names for privileged users (they may
>   contain a +, don't use EREs)  

> I just scanned it quickly, but the change looks good.

OK. Do you want to produce a test release for the crons?

<snip>

> Note also the discussion with Christian starting at
> https://cygwin.com/ml/cygwin/2014-11/msg00095.html

I am fine with the prefix but there is something we should agree on about
the special 
privileged names like cyg_server.

What I did is to create an entry for them in /etc/passwd. The reason is that
the shell 
is changed to /bin/false and I don't want to deal with setting that in the
Windows 
databases (I can't test all possible variations).
Now when we create a passwd entry, we can include the prefix, as I did, or
remove it.
csih and the other similar scripts should agree on that, otherwise they may
reuse
the privileged user (based on the Windows database) but create different
passwd entries.
Of course removing the prefix can create a conflict with a cyg_server domain
user.

Pierre




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

- Raw text -


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