From: Hamish McIntyre-Bhatty <cygwin@hamishmb.com>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Smartctl issues in Cygwin with elevated terminal
Date: Tue, 13 Sep 2022 10:11:03 +0100 [thread overview]
Message-ID: <228fb395-f742-5d99-d108-f3394129d97e@hamishmb.com> (raw)
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
next reply other threads:[~2022-09-13 9:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-13 9:11 Hamish McIntyre-Bhatty [this message]
2022-09-13 11:46 ` Hamish McIntyre-Bhatty
2022-09-13 17:23 ` Christian Franke
2022-09-26 14:26 ` Hamish McIntyre-Bhatty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=228fb395-f742-5d99-d108-f3394129d97e@hamishmb.com \
--to=cygwin@hamishmb.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).