Hope you are doing well.
New install on an odroid c2, I have created a user and made it part of the sudoers group. Everything goes fine except one thing.
When I’m sshing to the box I’m asked to sudo and my password before getting the bash prompt.
I think this come from the dietpi launcher and I’m looking for a way to remove this two step behaviour which breaks all my remote scripts to connect and do stuff on this machine.
What is the best and recommended way to remove this feature please?
We run some parts of our login script via sudo. Indeed this leads to an additional password prompt, if configured for sudo + related user. We’re anyway change the way how/where our login script is called for v6.9, so I think we can address as well the issue, if a user with password protected sudo right is used.
Would be interesting, if the command is just skipped of -n option is used:
-n, --non-interactive non-interactive mode, no prompts are used
Do you need sudo password protected?
Otherwise remove password protection from it by adding the sudoers line: username ALL=NOPASSWD: ALL
If you need it, I will give you some more info in how to manually fix this.
first of all thank you for the great work!
I ran into this issue and forgot to check the forum in the first place , so I narrowed the sudo call down to the call of the “obtain_network_details” script inside the “login” script. For my purpose it was ok to deactivate the specific call of the complete script. .
Is it correct that the call to the “obtain_network_details” in the “login” script is in this case is “just” used to get IP information for the banner?
You probably already know, but the issue also occurs for any new user created, even if they are not added to the sudo group.