public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: banshee <banshee@abattoir.com>
To: cygwin@cygwin.com
Subject: Recent x86_64 update broke administrator use of smartctl.exe
Date: Sat, 28 Mar 2015 06:14:00 -0000	[thread overview]
Message-ID: <5515FB35.9020709@abattoir.com> (raw)

I have two windows 7 x64 boxes, one running cygwin x86 and the other 
x86_64.  I run smartctl on both boxes.  One can run smartctl as 
administrator or not, but it produces a fuller information set with 
admin rights.  A recent change to the x86_64 cygwin has broken 
administrator use of smartctl as detailed below.  It still runs fine on 
the x86 cygwin.

I'm not certain which version of cygwin broke the functionality, but it 
was working last week.

x86_64 running as NON-ADMIN can run smartctl with non-admin rights:
$ uname -a
CYGWIN_NT-6.1 myhost 1.7.35(0.287/5/3) 2015-03-04 12:09 x86_64 Cygwin
$ /usr/sbin/smartctl.exe -a /dev/sda
smartctl 6.3 2014-07-26 r3976 [x86_64-unknown-cygwin-win7-sp1] 
(cygwin-6.3-1)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

Warning: Limited functionality due to missing admin rights
=== START OF INFORMATION SECTION ===
... runs ok ...
$ head /dev/sda
head: cannot open ‘/dev/sda’ for reading: Permission denied
$

x86_64 running as ADMIN fails to run smartctl
$ /usr/sbin/smartctl.exe -a /dev/sda
smartctl 6.3 2014-07-26 r3976 [x86_64-unknown-cygwin-win7-sp1] 
(cygwin-6.3-1)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

Read Device Identity failed: Input/output error

A mandatory SMART command failed: exiting. To continue, add one or more 
'-T permissive' options.
$ head /dev/sda
(works)
$

x86_32 running as NON-ADMIN runs ok:
$ uname -a
CYGWIN_NT-6.1-WOW myhost2 1.7.35(0.287/5/3) 2015-03-04 12:07 i686 Cygwin
$ /usr/sbin/smartctl.exe -a /dev/sda
smartctl 6.3 2014-07-26 r3976 [i686-pc-cygwin-win7(64)-sp1] (cygwin-6.3-1)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

Warning: Limited functionality due to missing admin rights
=== START OF INFORMATION SECTION ===
... runs ok as non-admin ...
$

x86_32 running as ADMIN also runs ok:
$ /usr/sbin/smartctl.exe -a /dev/sda
smartctl 6.3 2014-07-26 r3976 [i686-pc-cygwin-win7(64)-sp1] (cygwin-6.3-1)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
... runs ok as admin ...
$




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

             reply	other threads:[~2015-03-28  0:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-28  6:14 banshee [this message]
2015-03-28 12:41 ` Marco Atzeri
2015-03-28 16:21 ` Christian Franke

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=5515FB35.9020709@abattoir.com \
    --to=banshee@abattoir.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).