Skip to content

Disabled root password and adding dappnode user to sudo#508

Merged
3alpha merged 1 commit intomasterfrom
3alpha/adding-dappnode-to-sudoers
Nov 9, 2022
Merged

Disabled root password and adding dappnode user to sudo#508
3alpha merged 1 commit intomasterfrom
3alpha/adding-dappnode-to-sudoers

Conversation

@3alpha
Copy link
Member

@3alpha 3alpha commented Oct 29, 2022

Disabling password for root user should make add first user to sudoers.
Test instructions:

  • Install DAppNode ISO to fresh machine
  • sudo <command> should work, i.e. ask for user password

@alexpeterson91
Copy link
Member

What's the reasoning behind root password removal?? Out of context it just sounds crazy lol.

@3alpha
Copy link
Member Author

3alpha commented Oct 30, 2022

I see how it sounds crazy, but when you remove the password, it doesn't let you in without it, it disables that way of logging in into root account.

@alexpeterson91
Copy link
Member

Can it not just be reset from GRUB still? Like I always did on my nodes before we alllowed setting if the root password?

@3alpha
Copy link
Member Author

3alpha commented Oct 30, 2022

It can, yes. Goal of this is to change root login from su - and putting in root password to sudo su - and putting in dappnode user password. By removing the root password first method (su - ) now just shouldn't work for any password whatsoever.

It may seem like trivial change, but it is important since most people are used working with sudo and there is one less password to think about.

@3alpha 3alpha merged commit 8a6ed61 into master Nov 9, 2022
@3alpha 3alpha deleted the 3alpha/adding-dappnode-to-sudoers branch November 9, 2022 19:30
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

Successfully merging this pull request may close these issues.

3 participants