Sudoers file permissions
- by twigg
I'm trying to run the following command without the need for sudo:
echo 1 | sudo tee -a /sys/block/$hd/device/delete
The $hd variable changes dynamically from sdb - sdi for each one of my HDD's in my drive bay.
I added the following line to the sudoers file:
operator ALL=/sys/block/sdb/device/delete
But this didn't make a difference its still asking for sudo password even if I run:
echo 1 | sudo tee -a /sys/block/sdb/device/delete