X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0	tests=AWL,BAYES_50,FREEMAIL_FROM,SPF_HELO_PASS,TW_LH,TW_RW,TW_WX,TW_XR,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Matthias Meyer <matthias.meyer@gmx.li>
Subject: Re: admin sees another file-owner as a normal user
Followup-To: gmane.os.cygwin
Date: Fri, 22 Apr 2011 18:27:13 +0200
Lines: 45
Message-ID: <iosa9b$ic9$1@dough.gmane.org>
References: <ios9m9$evq$1@dough.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7Bit
User-Agent: KNode/4.4.7
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Matthias Meyer wrote:

> Hi,
> 
> I've installed cygwin V1.7.5 within Windows7 SP1.
> Curiously a file seems to have two different owners. Depends on the
> account which list the file.
> 
> 
> If I run a cmd as a normal user and list file:
> C:\>ls -lh /
> drwxrwx---+  1 ????????       Administrators  16K 2011-04-22 10:46 bin
> C:\>ls -lhn /
> drwxrwx---+  1 4294967295 544  16K 2011-04-22 10:46 bin
> 
> If I run a cmd as administrator and list file:
> C:\>ls -lh /
> drwxrwx---+  1 Backup         Administrators  16K 2011-04-22 10:46 bin
> C:\>ls -lhn /
> drwxrwx---+  1 1033 544  16K 2011-04-22 10:46 bin
> 
> 
> I haven't any problem because of this behaviour but I want understand what
> happens their.
> 
> Thanks for any hint
> Matthias

Damned!!
I'm looking around this since 3 days. Today I write this mail to you and 
5min later I am stumbling about the solution.
Should I laugh or cry?

As normal user "grep 1033 /etc/passwd" don't deliver a result. So I removed 
/etc/passwd.
After this the misterious was removed too. It seems there was two files 
/etc/passwd on the same place. An old one (without the user 1033) and the 
actual one.

Anyone knows how it is possible to have one file two times?

Thanks and Happy Easter
Matthias
-- 
Don't Panic


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

