-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
No current user owned ${XDG_CONFIG_HOME}
(aka ${HOME}/.config
) directory
#491
Comments
@ivailop could you please clarify why this directory should be owned for the current user for your builds? |
It must be owned by the current user as being in its Later on, any tool being run (non-sudo) that needs to write access to
Yes, this is what I end up doing as a workaround. But it would be nice if someone does not have to discover a non-obvious problem like that and search for workarounds to fix it. |
@ivailop thanks for the answers. Does it make sense to pre-create configstore directory(under ~/.config) with the same permissions as well? |
@miketimofeev, I provided |
@ivailop actually, it's the very first time we hear about such issues. Looks like for the most of the customers the permissions are fine |
@ivailop Pr has been merged. Waiting for vm rollout |
@ivailop the images have been deployed. Could you check the behavior, please? |
@miketimofeev, I might be interpreting it wrongly, but I read in #4 that you are planing to revert this change? Before rushing should you consider the following:
However, in all cases just having |
@ivailop we've decided to get rid of the |
Yes, I checked it and it works fine now. |
Thanks for the confirmation. Closing the issue, but feel free to reopen if you have any concerns. |
As originally reported by @ivailop in https://github.com/microsoft/azure-pipelines-image-generation/issues/1271:
Describe the bug
The hosted "Ubuntu 16.04" image has no current user owned
${XDG_CONFIG_HOME}
(aka${HOME}/.config
) directory.Expected behavior
Have existing
${XDG_CONFIG_HOME}
(aka${HOME}/.config
) pre-created with current user (i.e.vsts
) being the owner of it.Actual behavior
${XDG_CONFIG_HOME}
(aka${HOME}/.config
) directory does not exist. As being a de-facto location for storing user-specific configuration, installing dependencies usingsudo
would automatically create it withroot
being the owner of it. Subsequent non-sudo access to it would fail withPermission denied
.To reproduce:
Image impacted
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: