Is there a way to read sudo pass word (for example from a file ) for executing a command as below
hdparm -I /dev/sd?|grep -E “Number|/dev”
or simply is it possible to call hdparm without sudo / password
Search for sudoers http://linux.die.net/man/5/sudoers. You can configure sudo to not ask the password for "sudo hdparm"
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.