X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; q=dns; s=default; b=fQV
	Yy/laJoXKjxpAZuF/r+f4g91lLGbsC+sD6xHDtvg/gzeGcQirxE0Fh3fQSeD8yeT
	Lb/A+Osn8X+hY7KOFOR1RVb46kjOULgAmVxpLPspW/377izUcywNyR/Ma49GDtVZ
	ubVrCEeHst2poY0NGNt6X4iQ9CFlfaDq+WIyxRqM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; s=default; bh=W2sVYmdQB
	LSmVP2TdOqtQIHsIes=; b=ORKKg+4pXHMeGzTNBf+QbOPlx4Th9+y5RF51DI4Eo
	Lm1Jw7O0bc1mDZ5o5s0TmhAvwM3LYU9x1kpayOzbA1EQQ5gpHioTm6DQO4IOT/nx
	QhcvUn2OjKoqaoIcdO+b6ZRFPgfcnWLdT61RQ5vJuWxSpHDl06FnQCwbhXeSOi78
	t0=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_05,TVD_RCVD_IP autolearn=ham version=3.3.2
X-HELO: gabriella.abattoir.com
Message-ID: <5515FB35.9020709@abattoir.com>
Date: Fri, 27 Mar 2015 17:52:05 -0700
From: banshee <banshee@abattoir.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Recent x86_64 update broke administrator use of smartctl.exe
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

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

