You are not logged in.
Hello,
I'm trying to execute the pm-utils commands without the need of using sudo.
What I have tried:
- Adding:
bob ALL = NOPASSWD: /usr/sbin/pm-hibernate
bob ALL = NOPASSWD: /usr/sbin/pm-suspendat the END of the /etc/suders file using visudo
- Adding:
... ABORT POST ABORT - ABORT. I found my mistake.
At this exact point in time, as I was typing this, I searched for the next line that I used, which was:
$users ALL = NOPASSWD: /usr/sbin/pm-suspend)my eyes once again glanced on the forum post and stopped at:
"You can now run the scripts without a password by simply running:
$ sudo pm-hibernate "
*facepalm* I was trying to execute it without sudo.
I decided to still post this thread because I want to emphasise how important it is to read solutions thoroughly.
Greetings
Offline
Thanks for retaining the post, we appreciate that.
Also, if you don't want to type sudo everytime, you can use shell aliases, like
alias pm-hibernate='sudo pm-hibernate'Offline