Sudo Non-Password access to /sys/power/state
- by John
On my computer, pm-hibernate appears to be broken, however using the command echo disk > /sys/power/state appears to work perfectly. Now I just need regular user access to it, using sudo. How do I do this?
The command sudo echo disk > /sys/power/state simply returns bash: /sys/power/state: Permission denied.
Also, I need this in a regularly used script, how can I make it so that I don't have to type in my password for it to work???