nimbus-eth2 icon indicating copy to clipboard operation
nimbus-eth2 copied to clipboard

Relax file system permission checks

Open remyroy opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Configuring and maintaining a machine with the right file system permissions can be difficult with Nimbus especially for users who are unfamiliar with file system ownership, permissions and ACL. Nimbus will just not work, with various commands (regular start, trustedNodeSync, deposits import, etc) with the right permissions. It will send an error message that can be difficult to fix and it will stop performing its task.

This is espcially difficult when running Nimbus on Windows where even if you have a properly configured file system setup to begin with, it's easy to screw it up by simply browsing with the file explorer. If a user with admin rights browse to a directory that is used for Nimbus data which is run under a service with a different user, the file explorer on Windows will simply prompt the user to gain access to that directory by adding a new ACL permission that will eventually prevent Nimbus from starting.

windows-perm-1

windows-perm-2

Describe the solution you'd like Nimbus should warn insteading of stopping when it detects an incorrect file system permission. For interactive commands or commands that are not service-like, it could prompt the user to fix the permissions and try automatically fix it or provide more information on how exactly it can be fixed and what exactly is wrong with the file system permissions.

Additional context Related issues and PRs:

  • #1320
  • #1533
  • #1688
  • #1863
  • #1921
  • #1922
  • #2115

remyroy avatar Jun 22 '23 14:06 remyroy