1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #61 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

smartctl running like other user different from root

Reported by: ferent Owned by: chrfranke
Priority: minor Milestone: Release 5.41
Component: smartctl Version:
Keywords: Cc:

Description

I need some help or explanation, i need to run smartctl like other user diferent from root, my user p.e user1 can be in any group,in fact is in group disk, this requirement is for a monitoring staff.

/usr/sbin/smartctl -H /dev/sda
smartctl version 5.33 [x86_64-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl: Device Read Identity Failed (not an ATA/ATAPI device)

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

Change History

Changed 4 years ago by mhlavink

I'm not sure if smartctl can really work without root's CAP_SYS_RAWIO permissions. But at least some better error message would be great

Changed 3 years ago by chrfranke

  • owner changed from somebody to chrfranke
  • priority changed from major to minor
  • status changed from new to accepted
  • component changed from all to smartctl
  • milestone set to Release 5.41

smartctl/smartd require ATA/SCSI pass-through access and therefore root permissions. The error message should include a more specific error message if /dev/ice could be opened but first pass-through ioctl failed (typically with errno=EPERM), e.g.:

Smartctl: Device Read Identity Failed: Operation not permitted

Changed 3 years ago by chrfranke

  • status changed from accepted to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.