-
Notifications
You must be signed in to change notification settings - Fork 123
Weird permission issue with kdb meta-set #4260
Comments
I can reproduce the issue. Maybe the spec plugin copies something also to spec: and Elektra tries to write this, too? Further investigation is needed. |
@markus2330 This looks like an issue for the FLOSS course. |
I think this is related to #4061. Both seem to follow similar steps and #4061 shows that So yes, it could be FLOSS issue, but it is very hard to say how much effort fixing this would be. |
I could reproduce this on master (d1a8f82)
What do you mean by it works without sudo? Executing this commands gives me a permission error too. |
Then this may have changed since I reported the issue. |
I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. |
I closed this now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. |
While testing I found a very weird permissions issue with
kdb meta-set
Steps to Reproduce the Problem
Expected Result
The snippet above should run successfully and print something along the lines of
Actual Result
There is a permissions error during
kdb meta-set
:I suspect this has something to do with the fact, that we try to read/write with a cascading parent.
System Information
Further Information
The whole thing gets a lot weirder, however, when we try to experiment a bit.
spec-mount
is important. The one I provided seems to be minimal. You need an array parent, a spec for the array elements and you also need keys below the array elements. No actual metadata is needed, so this is caused either by the kdb tool, the kdb lib or the spec plugin.user:/
key for the root user. When you also usesudo kdb meta-get
you can observe the expected behaviour.sudo kdb meta-set
it works withoutsudo
. The following replacement also produces the expected behaviour (with the side effect of also setting theuser:/
key for the root user):The text was updated successfully, but these errors were encountered: