node-installer icon indicating copy to clipboard operation
node-installer copied to clipboard

Ensure that nodes installed using the installer work with superusers other than 'root'

Open fe71ks opened this issue 5 months ago • 1 comments

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

  1. Set up VPS
  2. Create a new user and grant rights (usermod -aG sudo )
  3. Install node using ITN-installer and start node
  4. 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.

fe71ks avatar Sep 10 '24 09:09 fe71ks