0
My OS is Debian9 and I need use command smartctl
in my script to get some hard drive info. But due to usual user have some special environment variable, I can't execute this script by sudo
. So I execute command ls -l /dev/ | grep sd
, and I found the group of /dev/sdb
is disk
. So I edit the /etc/group
add the usual user to the disk
group. Then run the script, it still show Smartctl open device: /dev/sda failed: Permission denied
. How can I slove this problem? thankyou all!
Okay, thankyou! – fajin yu – 2019-05-15T07:57:46.170