Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Sudo prompt should be early #167

Open
ryansch opened this issue Mar 24, 2016 · 5 comments
Open

Sudo prompt should be early #167

ryansch opened this issue Mar 24, 2016 · 5 comments

Comments

@ryansch
Copy link
Contributor

ryansch commented Mar 24, 2016

Instead of waiting for the nfs stuff to prompt for sudo (when the user's attention may have wandered while waiting) we should prompt the user early with a no-op sudo command (ex: sudo true).

@codekitchen
Copy link
Owner

I think the main reason I hesitate to +1 this is I have my sudo configured to require my password every time -- so this would force me to enter my password an extra time.

@ryansch
Copy link
Contributor Author

ryansch commented Oct 11, 2016

Configurable?

I'm actually doing this already in a wrapper script that we use.

@zacheryph
Copy link

Another alternative,

Give an option to either "install" or print the actually commands / sudoers configuration options (with NOPASSWD) so sudoers file can be updated to not require a password for these.

@zacheryph
Copy link

I am not a sudoers guru, but this is what I ended up doing. This could easily be extended to using a dinghy group for allowing multiple users to do it.

/etc/sudoers.d/dinghy

Cmnd_Alias DINGHY_NFS = /usr/local/bin/dinghy nfs *

my_username ALL = NOPASSWD: DINGHY_NFS

@josefglatz
Copy link

@zacheryph @codekitchen @ryansch I've wrote an article about codekitchen/dinghy and added also the passwordless configuration for the setup of the macOS DNS resolution:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants