Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


`sudo -k` | 22 comments | Create New Account
Click here to return to the '`sudo -k`' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
`sudo -k`
Authored by: NovaScotian on Jun 02, '05 02:33:48PM
This hint is particularly useful from AppleScripts - i.e.

do shell script "sudo pmset spindown 0 dim 0" password myPW with administrator privileges
-- then your other stuff,  but ending with
do shell script "sudo -k"


[ Reply to This | # ]
`sudo -k`
Authored by: ringo999 on Sep 27, '05 09:46:04AM

isnt it a bit "stupid" to save your password in plain text in a script? this is what sudoers is for. I enabled my user i.e. the pmset command with the NOPASSWD feature.



[ Reply to This | # ]