delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/09/01:13:06

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB
X-Spam-Check-By: sourceware.org
Message-ID: <851234.53239.qm@web25507.mail.ukl.yahoo.com>
Date: Tue, 9 Mar 2010 06:12:50 +0000 (GMT)
From: Marco Atzeri <marco_atzeri AT yahoo DOT it>
Subject: Re: Shared home dir, samba, and workgroups
To: cygwin AT cygwin DOT com, Wes Barris <wes DOT barris AT csiro DOT au>
In-Reply-To: <4B95D400.5070104@csiro.au>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

--- Mar 9/3/10, Wes Barris ha scritto:

> Wes Barris wrote:
> > I use Cygwin 1.7 on my XP desktop system at
> work.=A0 I like having the
> > same home directory on this Windows XP system as I do
> on our Unix
> > server.=A0 The Windows XP system is a member of a
> domain.=A0 The Unix
> > server is not.=A0 The Unix server is running Samba
> and is configured
> > with a workgroup name.=A0 My home directory on the
> Unix server is
> > mounted as a mapped network drive on the Windows XP
> system.
> >=20
> > Everything in the above setup is working
> > properly from the Unix server side and from the
> Windows side when
> > working with Windows Explorer.=A0 I can create and
> delete files via
> > Windows Explorer and they show up on the Unix side
> with proper
> > ownership and permissions (as controlled by
> Samba).=A0 Conversely,
> > I can create and delete files under Unix and access
> these files
> > from Windows Explorer.
> >=20
> > The problem is when I look at my mapped network home
> directory
> > with Cygwin, my home directory files are owned by
> nobody ('????????')
> > and have a group of nobody.=A0 I am guessing that
> this is because my
> > Windows SID in /etc/passwd is the SID of my domain
> user and since
> > the Samba server is not part of this domain the files
> look like they
> > are from an unknown user.
> >=20
> > In our Samba server there is a file (usermap) that
> maps unix usernames
> > to windows usernames.=A0 This appears to be working
> when working with
> > Windows Explorer.=A0 Why doesn't this work with
> Cygwin?=A0 What is the
> > way to fix this?=A0 Do I somehow need to map my
> unix username to a
> > windows SID?=A0 Do I need to turn off ntsec?=A0

you need to map the WINDOWS SID to the UNIX username

so you need to add on /etc/passwd and etc/group
the right references.

see:
http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd
http://cygwin.com/cygwin-ug-net/ntsec.html

> Do I need to change
> > the mount options for /cygdrive?
>=20
> Should I assume from the lack of any response that there is
> no fix
> for this?
>=20
> -- Wes Barris

I should say no
Marco






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