delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/08/21:55:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4C883E89.40508@cygwin.com>
Date: Wed, 08 Sep 2010 21:55:21 -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 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Oddities with file deletion on CIFS drive
References: <FF9587650EB15D3C59CFAA56@[192.168.1.2]> <4C881018 DOT 4060809 AT cygwin DOT com> <A6B0B94B22709FC369553C11@[192.168.1.2]> <4C881357 DOT 4070100 AT cygwin DOT com> <B48B4F1E5934DC7067F010CA@[192.168.1.2]>
In-Reply-To: <B48B4F1E5934DC7067F010CA@[192.168.1.2]>
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 9/8/2010 7:07 PM, Quanah Gibson-Mount wrote:
> --On Wednesday, September 08, 2010 6:51 PM -0400 "Larry Hall (Cygwin)" <> wrote:
>
>>
>> OK, take a look at <http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-ids>.
>> You'll want to use 'mkpasswd' and 'mkgroup' to get the passwd and group
>> files fixed up.
>
> I've read that page multiple times, and it still looks greek to me. :/ What I
> know is, the CIFS drive is mounted as the user "build". The user I log into
> windows with is "build". The user cygwin runs under is "build". So all 3 of
> those match. I don't see why there's any issue at all determining who owns
> the files.
>
> build AT zre-win-002 ~
> $ id build
> uid=503(build) gid=513(None) groups=513(None)
>
> build AT zre-win-002 ~
> $ grep build /etc/passwd
> build:unused:503:513:U-ZRE-WIN-002\build,S-1-5-21-1229272821-2049760794-1417001333-1003:/home/build:/bin/bash

This shouldn't be significant but is there a reason that you changed
your uid to 503 from 1003?

> build AT zre-win-002 ~
> $ grep 513 /etc/group
> None:S-1-5-21-1229272821-2049760794-1417001333-513:513:

Hm, what does 'ls -ln' look like?  I can guess but I shouldn't do that. ;-)

That covers all the obvious things for me.  I'd recommend taking a look at
the SAMBA server to see if user IDs are mapped correctly.  Also, I know
there were some problems in the past with older Samba servers, bugs and
all.  Make sure you're using a current version there.  It may be
worthwhile to look at the permissions and owners from the Windows
perspective too.  If that doesn't get you anywhere, I'd recommend filing
a full problem report on your follow-up to the list.  See the link below
for full details:

> Problem reports: http://cygwin.com/problems.html


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

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

- Raw text -


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