Oddities with file deletion on CIFS drive

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Thu Sep 9 02:22:00 GMT 2010

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@zre-win-002 ~
> $ id build
> uid=503(build) gid=513(None) groups=513(None)
> build@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@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

More information about the Cygwin mailing list