From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward501j.mail.yandex.net (forward501j.mail.yandex.net [5.45.198.251]) by sourceware.org (Postfix) with ESMTPS id C5E7A3858438 for ; Tue, 14 Dec 2021 18:05:03 +0000 (GMT) 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 Received: from vla1-b5449b1c7de5.qloud-c.yandex.net (vla1-b5449b1c7de5.qloud-c.yandex.net [IPv6:2a02:6b8:c0d:3915:0:640:b544:9b1c]) by forward501j.mail.yandex.net (Yandex) with ESMTP id E897F62335D; Tue, 14 Dec 2021 21:05:00 +0300 (MSK) Received: from vla1-62318bfe5573.qloud-c.yandex.net (vla1-62318bfe5573.qloud-c.yandex.net [2a02:6b8:c0d:3819:0:640:6231:8bfe]) by vla1-b5449b1c7de5.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 7wdZUlEx9V-50fSrsCP; Tue, 14 Dec 2021 21:05:00 +0300 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 Received: by vla1-62318bfe5573.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id GAJAAb7dN1-50PeY9fj; Tue, 14 Dec 2021 21:05:00 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Fwd: 2 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 14 Dec 2021 17:50:48 -0000 Date: Tue, 14 Dec 2021 20:50:48 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <1318628227.20211214205048@yandex.ru> To: Valerio Messina via Cygwin , cygwin@cygwin.com Subject: Re: lost of admin right In-Reply-To: <0f5987ef-73b1-ef02-a985-d7c1d796ff45@iol.it> References: <0f5987ef-73b1-ef02-a985-d7c1d796ff45@iol.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2021 18:05:06 -0000 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...