-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add example for non-root ownership for files & parent directories #450
Conversation
d082c74
to
9f74c21
Compare
Add an example for non root ownership for files and parent directories
Let's re-title this PR to something more descriptive? |
Can you also update https://docs.fedoraproject.org/en-US/fedora-coreos/tutorial-user-systemd-unit-on-boot/ as mentioned in the issue? |
Update ownership in example for files and directories.
name: sleeper | ||
group: | ||
name: sleeper | ||
- path: /home/sleeper/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this one as it's created with the user.
name: sleeper | ||
group: | ||
name: sleeper | ||
- path: /home/sleeper/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
storage: | ||
files: | ||
# This creates a file, and sets the ownership | ||
- path: /home/directory/you/want.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use a path with a name that matches the user and use a real configuration example like https://discussion.fedoraproject.org/t/ignition-when-a-file-is-created-parent-dir-is-still-owned-by-root/41222
Also make sure to validate that your example pass Butane config validation. There are errors in CI for this one. |
Hey @mohelt , do you still want to work on this one or should I take over / give it to someone else? Thanks! |
Replaced and updated in #459. |
managing-files: Add example for non root ownership
Add an example for non root ownership for files
and parent directories
fixes: #441