delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,TW_LH,TW_RW,TW_WX,TW_XR |
X-Spam-Check-By: | sourceware.org |
X-Yahoo-SMTP: | Uu383n6swBCEN1G9up0WSnxbvN8fCPmk |
Message-ID: | <4DB1BA92.1060001@cygwin.com> |
Date: | Fri, 22 Apr 2011 13:27:46 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.9 ThunderBrowse/3.3.5 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: admin sees another file-owner as a normal user |
References: | <ios9m9$evq$1 AT dough DOT gmane DOT org> <iosa9b$ic9$1 AT dough DOT gmane DOT org> |
In-Reply-To: | <iosa9b$ic9$1@dough.gmane.org> |
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 |
On 4/22/2011 12:27 PM, Matthias Meyer wrote: > 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? My guess is the "old" file was not readable by the "normal" user but was for a user with administrative privileges. Same file, different access. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |