X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=aTL cYYvVSEHN4ElY0SYgY2nhs3k1SYukEfJYd33jjveFLsuFBxbQImotrbOdLXS3vWz cfqasU3LyBPlWpbqW+H1TyamfBLGbjyKbI50NcLtLmXmx2qVE7Xybita7ny73xmS 91aWcE44Jmq/kiqmAfTEk/uvCkwr9sHAqb2lIUL4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:content-type :content-transfer-encoding:mime-version; s=default; bh=qN1c2nmI+ DSwdGYLDFTMTtwTdL0=; b=c44TSlacPU0YBgwC2S9bvO1b4ZIgOmvbVAYTnNCaO ij/oX6UfjVzWra8qblar0ndKKpHQJj2PpOJY/he3O6sLnrXbiE3XxiF9GVVQUdsL l6ZTOQ3/Uvs6DoLF6LTSY4TVegMhfQhfstArxSDBWCCPyNNwjA6ASePX8YpMEy12 ew= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=2.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=Administrator, INFO, installations, set-up X-HELO: out.mail.ec.europa.eu From: "KAVALAGIOS Panagiotis (EEAS-EXT)" To: "cygwin AT cygwin DOT com" Subject: Cygwin does not include admin full rights to home directories Date: Fri, 29 Nov 2019 07:53:24 +0000 Message-ID: <0b569a727b2b48d3b23ec50ec15aed5a@BELBRU-EXMP101.eeas.europa.eu> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xAT7s2RC030385 Dear all, I am preparing the Cygwin windows package to be installed through Landesk to all developer's machines. I have managed to prepare a silent installation from a local repository, but the uninstallation script is not working due to insufficient permissions: [INFO] Powershell command: Remove-item -Path "C:\Program Files\Cygwin" -ErrorAction Stop -ErrorVariable RemoveErrors -Recurse -Force [ERROR] Installation failed. Details: Access to the path 'C:\Program Files\Cygwin\home\kavalpa\.dbus' is denied. [INFO] Process success or error code: 1 [ERROR] The returned error code do not match any of the accepted codes. Command execution might have failed which is normal, as the administrator has no access. Only the use normal user has full control. I have tried to change permissions to no avail: [INFO] Changing recursively ACL permissions [INFO] Setting recursively ACL to parent directory C:\Program Files\Cygwin [ERROR] Recursive Permissions failed. Details: Access to the path 'C:\Program Files\Cygwin\home\kavalpa\.dbus' is denied. [INFO] Recursive Permission success or error code: 1 [ERROR] The returned error code do not match any of the accepted codes. Permission set-up might have failed and the same goes for command line to reset the permissions: C:\EEAS IS Installations\LanDesk\RedHat-Cygwin-3.0.7>C:\Windows\System32\icacls.exe "C:\Program Files\Cygwin\*" /Q /C /T /RESET C:\Program Files\Cygwin\home\kavalpa: Access is denied. C:\Program Files\Cygwin\home\kavalpa\.bashrc: Access is denied. C:\Program Files\Cygwin\home\kavalpa\.bash_history: Access is denied. C:\Program Files\Cygwin\home\kavalpa\.bash_profile: Access is denied. C:\Program Files\Cygwin\home\kavalpa\.dbus: Access is denied. ... Is there any way to remove the installation in a more automatic manner, without having to do what is proposed in the Cygwin FAQ: https://cygwin.com/faq/faq.html#faq.setup.uninstall-all 4. Delete the Cygwin root folder and all subfolders. ... If you get a 'Permission Denied' error then you will need to modify the permissions and/or ownership of the files or folders that are causing the error. From my point of view, it is an issue for Cygwin to create user files without Administrator Full Control. The Administrator/root should be able to delete everything. My system is Win10 and I am using 64bit version of Cygwin. Thank you very much in advance. Kind regards, Panos Kavalagios -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple