DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 44RDL8gA712349 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=pabmoJjy X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1ED53382EF03 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1716816066; bh=10EpLrEU2tbLiPXlk89UYv+8rVgCziikhNXctKWmPZA=; 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=pabmoJjyGdCMqdsBQBGvybDl3k6Ros+KvvCQ7lJGD/J/0ZCWdL/JOe5YZLGt7d4x7 s2xLpkjyQ8KCzPrlsL80KrqO6xaYKHWiDpW/TpTEQqlfdhPsDpHQwrcr5VjWqzCs+R J+/iiVwIWWXUzg40OYe0oZDTTpMCWrGkFdonmk7A= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7E0CB385F009 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7E0CB385F009 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716816009; cv=none; b=TyXFAaVqU74br6kmKCs6wWM0IqRmhxwM8fKBpVMSmNtXVngqXVcSBVDY1sj61Ee+BzIY5cdujTr+eTO2X2N8o6ItDt7RdgAyJgSsIkcxgqdHObVRIxN6qQCGC8cjjMrq1joXWQNPImSDxP8Rf5cff60QcNjodIvBEyN46RIh4dU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716816009; c=relaxed/simple; bh=51J14vlmYtfKxGhffLyqEZNj4KEFhhSB7DqsYNQ1Szc=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=gufxB39u/ZdZGNtjAKrLkknG88KCMg0a0tQjlhbXlhm2D6W2wj3utLseeJkld3YhU3L+EID9uh0qK7E+E3LThVqTeE6zLN7w1TK4HA4r1IWZvEBazG38edgHhRLTzjgynGJkUG63BvoW3iCQ3aNVaaKFNDdCxo9wxaoB6rXu0ZQ= ARC-Authentication-Results: i=1; server2.sourceware.org X-Yandex-Fwd: 1 Date: Mon, 27 May 2024 16:12:22 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1282586515.20240527161222@yandex.ru> To: Martin Wege , cygwin AT cygwin DOT com Subject: Re: Installing Cygwin as normal user in nonstandard location? In-Reply-To: References: <386067300 DOT 20240526202908 AT yandex DOT ru> MIME-Version: 1.0 X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, XM_LIGHT_HEAVY 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.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 44RDL8gA712349 Greetings, Martin Wege! > On Sun, May 26, 2024 at 7:35 PM Andrey Repin wrote: >> >> Greetings, Martin Wege! >> >> >> Can Cygwin be installed as a normal user (without Admin rights) in a >> >> > nonstandard location, like C.\Users\martinwege\cygwinroot36\...)? >> >> > >> >> > Also, can this be done for more than one Cygwin version, e.g. I'd like >> >> > to test multiple Cygwin versions in parallel. >> >> > >> >> >> >> (?) Why ask when you can just try both scenarios pretty easily? >> >> > Simple example for possible issues (might be more): >> > Cygwin seems to modify the global REGISTRY with a "Install for >> > everyone" (as Admin). What will happen then? >> >> Why would you try to "install for everyone" if you don't have an admin rights? >> >> > Can Cygwin installations installed as non-admin interact via Windows >> > REGISTRY, or other unexpected ways? >> >> That's pretty strange question. > Why? Cygwin is a userland library and what you asking would be an exploit to the underlying system. >> >> > So testing by a non-expert like me might not uncover >> > such things immediately, so I better ask the experts here >> >> What do you ACTUALLY want to do? > We want to install multiple Cygwin installations, so we can do > (automated) regression testing. Also, the machines in question might > already have one admin-installed&approved Cygwin installation for all > users, which should not interact with any of the per-user > installations used for testing. If that admin-installed Cygwin version is out of control of your automated testing setup, the chances it would interfere with it are far from zero. My suggestion would be to not mess with user systems in such a way. Use dedicated systems for automated testing. If you still want your users to test with multiple Cygwin versions locally, give them specific instructions to avoid collisions, s.a.: 1. Clean environment. %PATH%, %TEMP%, %TMP% and other relevant variables should not contain reference to specific Cygwin installation. Use an appropriate CMD/PShell wrapper script for environment sanitization to start testing instances. 2.Clean start. Don't launch Cygwin environments one from another. It IS possible to do so cleanly, but better don't. Save your sanity. -- With best regards, Andrey Repin Monday, May 27, 2024 15:58:34 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