delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/20/08:25:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-Id: <4.3.1.2.20020820081659.02197a28@pop.rcn.com>
X-Sender: lhall AT pop DOT rcn DOT com
Date: Tue, 20 Aug 2002 08:20:51 -0400
To: "kobi cohen arazi" <kobi AT mivzak DOT com>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Problems SID and UID shown on remote NTFS network drive.
In-Reply-To: <15713.64464.665854.4090@gargle.gargle.HOWL>
Mime-Version: 1.0

At 04:20 AM 8/20/2002, kobi cohen arazi wrote:
>Hi all,
>
>Cygcheck is attached below.
>uname -a
>CYGWIN_NT-5.0 DUFAY 1.3.12(0.54/3/2) 2002-07-06 02:16 i686 unknown
>
>
>I have a problem figuring out the following:
>
>when looking at my id I get:
>uid=1116(kobi) gid=10513(Domain Users) groups=0(Everyone),544(Administrators),545(Users),0(Everyone)
>
>That is correct. My /etc/passwd and /etc/group says that !!
>
>When creating file on my local Hard disks I can see that
>I am user with id 1116 in group 10513 (using ls -lna) OK !
>
>However, That is not the case when creating a file on
>a remote mapped-drive (NTFS), I can see that the owner is 1002
>(instead of 1116 ).
>Doing ls -lna I can see that user id is 1002 and gid is 10513 .
>gid 10513 is OK. But where did cygwin got the 1002 ??
>
>I did another thing to verify it. I looked at the created file with
>win-explorer-file-properties-security, and I could see that the file
>has 3 owners name: Domain Users, Everyone and SID like that:
>S-1-5-21-484763869-1957994488-854245398-1002
>I know that GID 513 (none) has that GID, and 1002 is *my* sid when
>using mkpasswd -l
>
>BUT, In order the system recognize only the domain part of me
>I did only mkpasswd -d > /etc/passwd and remove the none-513 group
>from /etc/group.
>It seems that somehow, The system "knows" that originaly, I am sid
>1002 and from group 513, thus creating file on remote drives making me
>nuts.
>
>Last thing, just to make sure: It doesn't occur when creating file
>using a dumb ms-dos console and/or ms-win-explorer.
>(I.e. the user id is 1116 and group is 10513 and everything is cool
>when looking at file's win-explorer-file-properties-security)
>
>Is there anyone that can explain it or point me to a good resource
>that explains that? (Webpage/book etc ....)
>
>Thanks for your time.



The general reference for this area is in the user's guide.  

http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html

See the sections on security.

If you want to be treated by Cygwin as the domain user, you need to log
into Windows as the domain user.  Otherwise, you're the local version of
"you" and this ID will be used for file (and other token) creation.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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