Skip to content

Make it easier to run eth-docker with an app user#2545

Merged
yorickdowne merged 1 commit intoethstaker:mainfrom
yorickdowne:shared-user
Apr 20, 2026
Merged

Make it easier to run eth-docker with an app user#2545
yorickdowne merged 1 commit intoethstaker:mainfrom
yorickdowne:shared-user

Conversation

@yorickdowne
Copy link
Copy Markdown
Collaborator

@yorickdowne yorickdowne commented Apr 20, 2026

What I did

Assume a setup with a node user that has eth-docker installed, and a node-admins group. node and whoever administers the node are in node-admins. The eth-docker directory has 775 or 770 permissions, and the node-admins group has ownership, plus setgid is set on directories. chown -R node:node-admins ~/eth-docker && find ~/eth-docker -type d -exec chmod g+s {} +

With __as_owner being set when the effective UID of ethd doesn't match the owner, user alice can cd to /home/node/eth-docker and execute ./ethd <whatever>, and any file manipulation or creation activity will be prefixed with sudo -u node.

This makes it easy to have multiple admins on a server without a shared login.

@yorickdowne yorickdowne requested a review from pietjepuk2 April 20, 2026 06:41
@yorickdowne yorickdowne force-pushed the shared-user branch 2 times, most recently from 733678d to 4152d61 Compare April 20, 2026 08:52
@yorickdowne yorickdowne merged commit 7c07d3a into ethstaker:main Apr 20, 2026
191 of 192 checks passed
@yorickdowne yorickdowne deleted the shared-user branch April 20, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants