delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/04/08/04:36:35

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFB1D3858C1F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1680942945;
bh=mwvU5+po/TwqyXSZMPA5Oh3Dqbrcmz7+9RAaon4qBFY=;
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=bGU9BPW6WRnDIV0+a+PHgfrMWrklaPKOjvxxd1tbEhoOYlxKiIE5dcC4SJSq4tVoK
kBqvnC9OHKoOPHzXK9+Sklquc6fE4u15ARJlmv4DHEaBekS721EDHmnh2r+qeK0iLj
FaSqXbDhfmW/hK4TL15ecEUx8YQunHWy+U+xS06w=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 130083858D1E
X-Yandex-Fwd: 1
Date: Sat, 8 Apr 2023 11:30:47 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <174205789.20230408113047@yandex.ru>
To: Thomas Schweikle <tschweikle AT bfs DOT de>, cygwin AT cygwin DOT com
Subject: Re: Changing user home to overlap Windows user home possible? Or a
bad idea?
In-Reply-To: <5eae9f1f-9d58-d8a1-cf43-e6eeb77c7e1b@bfs.de>
References: <5eae9f1f-9d58-d8a1-cf43-e6eeb77c7e1b AT bfs DOT de>
MIME-Version: 1.0
X-Spam-Status: No, score=-0.8 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.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings, Thomas Schweikle!

> Is it possible to have the same home for Windows and cygwin?

See /etc/nsswitch.conf and https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch

> Using "C:\Users\<user>" for Cygwin home setting mount points for users?

I don't get this question. Can you please rephrase?

> Or is this a bad idea? Or is it something which has some drawbacks you've
> to decide to live with? At the moment the most ugly drawback is duplication
> of various data needed within "C:\cygwin\home\<user>" and "C:\Users\<user>".
> Would be nice if I could overlay both.

There's some caveats to using %USERPROFILE% as $HOME, most notable, you have
to be careful with overly sensitive programs, like SSH or GPG. Other than
that, the noacl flag on the cygdrive mount will cover you for the time being.
I.e.:

>> none /cygdrive cygdrive noacl,binary,nouser,posix=0 0 0

And usertemp idea is also a good one:

>> none /tmp usertemp binary,nouser,posix=0 0 0


-- 
With best regards,
Andrey Repin
Saturday, April 8, 2023 11:09:33

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