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 2A75238515F8 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=1663069584; cv=none; d=zohomail.eu; s=zohoarc; b=FoXctBaA27YGBmwIOlrq5jdpay0sVvlkvg61FSIbszg0EHpgJZ/QELgoeiHbxqUsse9PEpnUwjVKZFFwADPkStzqH07SFzuBQxWDK/AizF2GxpeFW54DGUgfHvz/NPV7JVE6VrdnotmojbOh/qyZlX/aq/Ki3oMM4DThD29xAak= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1663069584; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cUn1pnuHeolNbcl/cRv1bNeOIqE04VdJuSB38A2tF2M=; b=b/yni2xOPtnrfQgkHG4Hdoqj0ZSqB8WEUuVmtBp0v2xVXDZqDF9DhuA2TmKkMlIqRltjfd/OrpAXPsGoeZmHD4f/K42+ZAqO7xRzVu4dEZBdk0c/JVZwv42hO6G5wHur4T3CNonvPlqXjJXKJkYYzQ7uQbOvpl48sb9otg/rrgs= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=hamishmb.com; spf=pass smtp.mailfrom=cygwin AT hamishmb DOT com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663069584; s=zmail; d=hamishmb.com; i=cygwin AT hamishmb DOT com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:References:To:To:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=cUn1pnuHeolNbcl/cRv1bNeOIqE04VdJuSB38A2tF2M=; b=jIiXADR9L263O8pOZOKwpPXvxdKjmytK8n+zYV8MlUXK4/onHvIv4uJXzQufOsZi kxZaS3ItX6bCIbqYzCeIL6KILV24aiiAz3BA4+vTWVjsnzxPwYva65MlFV2bwI0z6cw iUWXaIR0HxEELHD8Lvd3CKhjXbD9IWNNhosS0LrE= Message-ID: Date: Tue, 13 Sep 2022 12:46:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Smartctl issues in Cygwin with elevated terminal Content-Language: en-GB References: <228fb395-f742-5d99-d108-f3394129d97e AT hamishmb DOT com> To: The Cygwin Mailing List From: Hamish McIntyre-Bhatty In-Reply-To: <228fb395-f742-5d99-d108-f3394129d97e@hamishmb.com> X-ZohoMailClient: External X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, 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 X-BeenThere: cygwin AT cygwin DOT 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 13/09/2022 10:11, Hamish McIntyre-Bhatty wrote: Just adding a note to say this seems to only occur on Windows 10 and 11. > 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 > -- 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