delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/12/14/13:07:20

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C5E7A3858438
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1639505100; bh=yqBTOut4+lzD93vxfJyNtAInaXvmTmxZCcLRA1B++/0=;
h=In-Reply-To:Subject:From:Message-ID:References:Date:Reply-To:To;
b=oCW5Jra6ysWWmGw2+XJ8VEntE82F5c9fXqdunDpn6Ahbo12TqBFxM6vVimdo9HGMa
EdLckFjZZv8E2mz6+zik5Sx4YvFYMxIK+eiRYeiJRb5CHCqcjHYD6IPHM4Keg1c96g
VF6P+YrxFb2YdYKBuSfd/DuHZ1J7pwyN0NYS5tDM=
Authentication-Results: vla1-b5449b1c7de5.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
X-Yandex-Fwd: 2
Date: Tue, 14 Dec 2021 20:50:48 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <1318628227.20211214205048@yandex.ru>
To: Valerio Messina via Cygwin <efa AT iol DOT it>, cygwin AT cygwin DOT com
Subject: Re: lost of admin right
In-Reply-To: <0f5987ef-73b1-ef02-a985-d7c1d796ff45@iol.it>
References: <0f5987ef-73b1-ef02-a985-d7c1d796ff45 AT iol DOT it>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.2 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_H2, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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>
Reply-To: cygwin AT cygwin DOT com
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, Valerio Messina via Cygwin!

> I have a company PC where I was admin and installed Cygwin in a non
> supported path:
> D:\Program Files (x86)\cygwin64
> /cygdrive/d/Program Files (x86)/cygwin64
> and worked like a sharm for years, with a quite complex env.

> Now admin right was revoked to me, and the update via setup.exe cannot 
> proceed.
> I can ask to the company admin to update the distribution every time, 
> but this is impractical.

Ask your administrator to move entire installation to a less guarded directory
(s.a. C:\Cygwin64 ) and assign you write permissions to the tree.
Then use `setup.exe --no-admin` switch to upgrade your installation (specify
correct path of a new installation's location).

> 1) Do you know if re-installing to supported path something like:
> D:\ProgramFiles\cygwin64
> /cygdrive/d/ProgramFiles/cygwin64
> let me update the distro without admin right?

Could just move entire directory. Safe within the same working environment.

> I made a backup of the about 800 installed packages with:
> $ cygcheck -c -d | cut -d' ' -f1 | tail -n+3 > installedPackages2021-12.txt
> I never tryed to restore the backup with:
> $ setup -M -P package1,package2, ...

> 2) Someone know if that work well ?

With some obvious reservations, the most simple solution will work just fine.


-- 
With best regards,
Andrey Repin
Tuesday, December 14, 2021 20:47:05

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