public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Recent x86_64 update broke administrator use of smartctl.exe
@ 2015-03-28  6:14 banshee
  2015-03-28 12:41 ` Marco Atzeri
  2015-03-28 16:21 ` Christian Franke
  0 siblings, 2 replies; 3+ messages in thread
From: banshee @ 2015-03-28  6:14 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-28 16:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-28  6:14 Recent x86_64 update broke administrator use of smartctl.exe banshee
2015-03-28 12:41 ` Marco Atzeri
2015-03-28 16:21 ` Christian Franke

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