Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iroh: make config read-only #469

Closed
wants to merge 1 commit into from
Closed

iroh: make config read-only #469

wants to merge 1 commit into from

Conversation

missytake
Copy link
Contributor

Context: #434 (comment)

@missytake missytake requested a review from link2xt January 7, 2025 17:15
@link2xt
Copy link
Contributor

link2xt commented Jan 7, 2025

iroh-relay is already running as iroh user, so config owned by root:root with 644 permissions is read-only for this user.
444 permissions will only add the annoying "readonly" warnings in e.g. vim when you open the file as root and try to write it, which can be bypassed with w! anyway.

You can try creating a file as your own user and changing the mode to 400, this does not really prevent the owner from doing anything and it is very uncommon to have no write permission for the owner.

@missytake
Copy link
Contributor Author

Alright :) then let's close this

@missytake missytake closed this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants