delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/10/30/03:35:57

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8AF0F38708B8
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1604043314;
bh=YtzVFK98i/3VDUYJQYwWANDtU5SyrXm7hEPu6weai5g=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=bRVD6vWcytdf3+Z9p/ddniJU28MUdJwS4t0L0CDnlOkMPwXqnSFsbgXIu6sK3YjWn
X9p9yZ1kVyLTeL5+GQo5OTa862RbzVHQ3nkDThFRS42m0Qxw6QYM+nQFF/N55Sntkg
+aYS+jQ1IXazGHnMz97xVfl9Rpm5VXi+SwQb7bYE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 389ED3857C4F
Date: Fri, 30 Oct 2020 10:29:59 +0300
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <95350468.20201030102959@yandex.ru>
To: =?windows-1250?Q?David_Bala=9Eic?= <xerces9 AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Conflict if same username local and in domain
In-Reply-To: <CAPJ9Yc8QBJT9yAbE6QB1TZGTWtOd8mHkgZ5534ZnnOKs0jh4bg@mail.gmail.com>
References: <CAPJ9Yc8QBJT9yAbE6QB1TZGTWtOd8mHkgZ5534ZnnOKs0jh4bg AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 09U7ZdTw004751

Greetings, David Balažic!

> I started Cygwin Terminal to find out, I landed in the other users
> home folder and have no write access.

> What happened was:
>  - log into Windows as domain user DOM\JOE
>  - start cygwin shell, land in /home/joe
>  - log into Windows as local user JOE
>  - start cygwin shell, land in /home/joe , but with no write access,
> as it belongs to other user according to Windows


> Is this a known issue? Should cygwin use a different username?

This is a caveat of the default nsswitch configuration in Cygwin.
It uses home directories inside Cygwin's own directory tree by default and
name them after username without domain, but you can configure it to either
use a different home directory name or just use user's profile as home
directory. Which is, if you ask me, way more logical.

Be aware of the noacl flag for mounting directories outside Cygwin tree, or
you may surprise your Windows applications with less than trivial ACE setups
generated by Cygwin in "strict POSIX" mode.


-- 
With best regards,
Andrey Repin
Friday, October 30, 2020 10:25:49

Sorry for my terrible english...
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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