Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup: sudo fails during sosetup if NOPASSWD:ALL not enabled #1490

Closed
jason-green-io opened this Issue Mar 21, 2019 · 3 comments

Comments

Projects
2 participants
@jason-green-io
Copy link

jason-green-io commented Mar 21, 2019

Under certain circumstances, when sosetup runs the 3 ssh sudo commands to get details for the autossh forward IP config on non master nodes, sudo will fail if a password is required because it doesn't have a tty. This works for the other commands run on the master since it pops open an xfce terminal and allows sudo to ask for the password. I got around this by making the sudo user run commands without the password. If the ssh/sudo user on the master is required to have NOPASSWD:ALL in sudoers, the sosetup dialog and documentation should be explicit. Or sosetup should ensure sudo can grab a password.

@dougburks

This comment has been minimized.

Copy link
Contributor

dougburks commented Mar 21, 2019

Hi @jason-green-io ,

We'll see what we can do to improve this. In the meantime, have you considered choosing Best Practices or enabling salt when prompted in Setup? Salt should set NOPASSWD:ALL automatically.

@dougburks dougburks transferred this issue from Security-Onion-Solutions/securityonion-setup Mar 21, 2019

dougburks added a commit to Security-Onion-Solutions/securityonion-setup that referenced this issue Mar 21, 2019

@dougburks dougburks self-assigned this Mar 21, 2019

@dougburks dougburks added this to To do in 16.04.6.1 via automation Mar 21, 2019

@dougburks dougburks moved this from To do to In progress in 16.04.6.1 Mar 21, 2019

@dougburks dougburks changed the title sudo fails during sosetup if NOPASSWD:ALL not enabled Setup: sudo fails during sosetup if NOPASSWD:ALL not enabled Mar 21, 2019

@dougburks

This comment has been minimized.

Copy link
Contributor

dougburks commented Mar 21, 2019

@dougburks dougburks moved this from In progress to In Testing in 16.04.6.1 Mar 21, 2019

@dougburks

This comment has been minimized.

@dougburks dougburks closed this Mar 25, 2019

16.04.6.1 automation moved this from In Testing to Done Mar 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.