Ensure that nodes installed using the installer work with superusers other than 'root'
Summary
During ITN, a node would only work correctly when the setup with ITN-installer was done as user "root". Using any other superuser would result in the node not connecting ("'service rusk status' returning (code=exited, status=101)"). Security best practice is not to use root for a VPS (Digital Ocean and most other how-to's provide specific instructions) and it would be great if this is taken into account.
Detailed Description (optional)
Not sure if this is a bug or expected behavior but many node runners will prefer not to use the root user but a newly created user.
Steps to reproduce
- Set up VPS
- Create a new user and grant rights (usermod -aG sudo
) - Install node using ITN-installer and start node
- Check Rusk status: node is not connecting and returns "'service rusk status' returning (code=exited, status=101)"
Relevant context
Happened on the following setups:
- Ubuntu 18.04 and 22.04
- Fresh install on both Digital Ocean and Contabo
Possible Solution (optional)
Ensure any future installer works with any (super)user or that the documentation makes clear how to ensure the user is set up correctly.
The answer is "it depends", but ideally the installer would be more dynamic in that regard. As such, I see it more as a "feature request" or "enhancement", rather than an actual bug, since the script was initially tailor-made for following our ITN guide.
It's still possible to do fully custom setups. I've done so myself, but it's definitely not for everyone. So if the script is able to handle different users and rely on groups as well that would be a lot nicer.