lost of admin right

Andrey Repin anrdaemon@yandex.ru
Tue Dec 14 17:50:48 GMT 2021


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...



More information about the Cygwin mailing list