@wolf@mastodon.social I may have been mistaken then. It's possible that the user must have a legitimate shell in order for you to do an interactive sudo of them.
I do wonder why the instructions you've got have you trying to sudo -i in the first place. There shouldn't be a need for that.