From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sender11-op-o11.zoho.eu (sender11-op-o11.zoho.eu [31.186.226.225]) by sourceware.org (Postfix) with ESMTPS id D6E1738845A9 for ; Tue, 13 Sep 2022 09:11:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D6E1738845A9 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=hamishmb.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hamishmb.com ARC-Seal: i=1; a=rsa-sha256; t=1663060265; cv=none; d=zohomail.eu; s=zohoarc; b=Wdh6VuyVMpsyl6OfjT/5VvgAK8eyKJek8QaAHQLXIsoUrcsOtMT/b8lguzi0LsSxIbt1GmMwtr1kV8aFc53t+3DKCZoO8r8gKiUbPDbr7i5kfqnSEejm+aPBMF9u59l3Wn0qjPpBOieHlOjkgbthv/1Q2CWPvhUfHIWpijBmcGE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1663060265; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=XpCoO2cVPCBfWaACJqjX8RWAd4Mb0GabSUc63ZoW+KA=; b=IwTpGvj+EFOpElFz6DzUGwhucjjs+BNxkdh2gQjzAjO5SW/rm8D9WJizKemowo4z6BgVc+DPHmiXqZ8Ok+HF0ZjLLTf+QgAbCEkuhSd/aJNb5xf/R/Rod007MmU5wlg8Kh/3dD1D2d4cIB2igUWGnOpO4qkB2IkLcLd2fp/RJAk= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=hamishmb.com; spf=pass smtp.mailfrom=cygwin@hamishmb.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663060265; s=zmail; d=hamishmb.com; i=cygwin@hamishmb.com; h=Message-ID:Date:Date:MIME-Version:To:To:From:From:Subject:Subject:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=XpCoO2cVPCBfWaACJqjX8RWAd4Mb0GabSUc63ZoW+KA=; b=mINtrcKJYysZLknmodvT8ioFSfNHzOX3Z3RrwTTUIYpBfz1TBQTpbfZSN+KsnOVf fshk0OMSK9qbsCVtpM/EoOsBgIAAjrzQq6avcK18oZULXKjkInmJCSXfwkhnsKThNOZ Y/8Zh9vVVOvYDfVazRD8cLpWs6K48y5WSe7+Hh4E= Received: from [192.168.10.212] (host86-149-41-78.range86-149.btcentralplus.com [86.149.41.78]) by mx.zoho.eu with SMTPS id 1663060263549194.5345297865125; Tue, 13 Sep 2022 11:11:03 +0200 (CEST) Message-ID: <228fb395-f742-5d99-d108-f3394129d97e@hamishmb.com> Date: Tue, 13 Sep 2022 10:11:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 X-Mozilla-News-Host: news://gname.os.cygwin:119 Content-Language: en-GB To: The Cygwin Mailing List From: Hamish McIntyre-Bhatty Subject: Smartctl issues in Cygwin with elevated terminal Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ZohoMailClient: External X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi there, I recently noticed that smartctl only works when the Cygwin Terminal isn't run as administrator - the opposite way round to Linux where you need superuser privileges to access the disk. With Administrator privileges on Windows 11, I get: "Read Device Identity Failure Input/Output error" But it continues to work fine as a normal user. Does anyone know why? In my case, this actually matters because I'm not sure how to elevate and/or drop privileges in Cygwin, as sudo doesn't work due to it not being Unixy underneath. I'll be happy to try and debug this and provide extra details if needed, but I'm not sure what to do next on this one. Cheers, Hamish