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

adding user #12

Open
charlesreid1 opened this issue Oct 24, 2018 · 2 comments
Open

adding user #12

charlesreid1 opened this issue Oct 24, 2018 · 2 comments

Comments

@charlesreid1
Copy link
Member

adding user to a group - automation step does not work

have to create user, and home directory (otherwise, mkdir /home/username, chown username:username /home/username)

have to do a useradd, then do a usermod for ubuntu group, then a usermod for sudo group

but then the netdata installer asks for a sudo password, and ruins the headless installation process.

usermod -a -G sudo

why is this being done by the user if it requires sudo?

@fp9695253
Copy link
Contributor

fp9695253 commented Oct 24, 2018

removing the netdata installation step avoids solving the underlying problem.

the underlying problem is the user is being prompted for the sudo password, even though they're part of the sudo group.

need to add this to /etc/sudoers.d/some-file:

username ALL=(ALL) NOPASSWD:ALL

replace the literal string username with the username and put this into any file in /etc/sudoers.d/ (must be done as sudo, obviously).

This is already configured for the ubuntu user by the cloud-init process on AWS nodes, which we've been taking advantage of and sidestepping the user creation process.

@fp9695253
Copy link
Contributor

Need to install some things too:

  • virtualenv

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

No branches or pull requests

2 participants