Sudoers file permissions
        Posted  
        
            by 
                twigg
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by twigg
        
        
        
        Published on 2012-10-24T14:01:44Z
        Indexed on 
            2012/10/25
            5:06 UTC
        
        
        Read the original article
        Hit count: 668
        
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
© Server Fault or respective owner