|
From: | Geoff Crompton |
Subject: | Re: [Fab-user] How to pass sudo passwords |
Date: | Thu, 02 Feb 2012 17:09:00 +1100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
On 31/01/12 11:50 PM, Carlton Gibson wrote:
It sounds like you want to run commands that require elevated privileges without either supplying a password at runtime or hardcoding it or editing the sudoers file to not require a password. AFAIK, can't be done. (This has very little to do with Fabric though.)
An work around for these limitiations might be to setup specific commands in the sudoers file that are permitted with NOPASSWORD. But perhaps allowing a user to call 'rm' and 'tar' as with sudo and NOPASSWORD is not satisfactory. Perhaps you might want to write a script that does exactly what is permitted to be done, and allow NOPASSWORD running of that specific script.
Cheers, Geoff
[Prev in Thread] | Current Thread | [Next in Thread] |