delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/05/22:20:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 5 Sep 2007 22:19:54 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Joseph Koenig <jkoenig AT broadcom DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Passing domain credentials for a non-domain machine (similar to mapping drives through the Windows shell)
In-Reply-To: <09BFF2FA5EAB4A45B6655E151BBDD9030501D20C@NT-IRVA-0750.brcm.ad.broadcom.com>
Message-ID: <Pine.GSO.4.63.0709052215200.20529@access1.cims.nyu.edu>
References: <09BFF2FA5EAB4A45B6655E151BBDD9030501D20C AT NT-IRVA-0750 DOT brcm DOT ad DOT broadcom DOT com>
MIME-Version: 1.0
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

On Wed, 5 Sep 2007, Joseph Koenig wrote:

> I have a desktop that I use to access a share with domain credentials
> despite not being on domain. So when I map a drive, I map it under
> "domain\user" and give it the password. This drive is mapped as Z.
>
> When I use cygwin to work on those files, it does not inherit the
> permissions that I mapped the network drive under and instead insists on
> using my local windows user and password (generated with mkpasswd)
> rather than what I mapped Z as.

You want to add "smbntsec" to your CYGWIN environment variable.  See
<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html> for details.

> Is there an easy way to manually edit the /etc/passwd file or change how
> cygwin reads the mapped volume to get it to use the same permissions
> that the windows shell is using?

You'll also want to use "mkpasswd -d >> /etc/passwd" to get domain user
information into it, and possibly "mkgroup -d >> /etc/group" (notice the
double ">>" to append).

> (I searched the archives for this....I'm sure it's been answered but I
> couldn't find anything - I apologize....)

It also helps to read and follow

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

in particular the bit about attaching the output of "cygcheck -svr".
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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