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?
ben0a
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.
I too would be very interested in how to disable this functionality.
I would like to create a non-sudo privileged user account that could be accessed from a remote source for security purposes. Is there a way to disable this for certain users?
Hello all,
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.
Thanks a lot for the prompt answer. this is fantastic if in a future realease this behavior can change as it lacks remote scripting capabilities. (but this is also very nice)
I can not do sudo without password as you suggest, this server and network is two much at risk using this way.
Can you give me some instruction on how to disable this part please as you suggested?