Try making sure that hobbit is a member of the proper group ("disk" on my system) to have read/write/execute to the block device.

~Kyle Lemons

On 11/7/06, Rob Munsch < rmunsch@solutionsforprogress.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I tried making the smartctl binary in a group a non-root user could
access it with, but

hobbit@currant:/root$ /usr/sbin/smartctl -H /dev/sda -d ata
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl open device: /dev/sda failed: Permission denied

no.

I am not entirely sure how i had this working before.  I had gotten this
script, running as an unpriv'd user, to run the command, and it was
successful.
The machine was recently rebooted, and since then the non-root user
(hobbit) cannot access the silly thing.  What changed on reboot?  the
issue seems to be not the binary but the drive itself, denying access to
non-root users.

As root, the command completes as expected.

currant:~# /usr/sbin/smartctl -H /dev/sda -d ata
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

ideas?

thanks,

- --
Rob Munsch
Solutions For Progress IT
www.solutionsforprogress.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUNyyBvBcJFK6xYURAsJTAJ4jMU+5q2GN7clOo/FvIeIfSDsNgwCdGNyP
jHAGFj/0wJH+Put1s4OYcbc=
=OPTw
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support



--
~Kyle Lemons

http://www.google.com/ -- Before you ask, search!
http://www.gentoo.org/ -- Feel the power of Freedom
http://www.gnupg.org/ -- Military grade encryption for the masses
http://www.xchat.org/ -- IRC: Industrial Strength Chatting