-
Notifications
You must be signed in to change notification settings - Fork 14
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
Temporary Directory Is Created As root Without Write Permissions #32
Comments
@kiler129 could you provide more details. Steps to reproduce, build log file might be really helpful |
I have the same issue using the latest nightly build |
I have the same issue. I'm running my build agent as root, and relying on the runAs plugin. It appears that the |
In my case, also the fact the git checkout is done as root was a problem. As a workaround I've configured the build to use a fixed directory (e.g. /home/teamcity/example), created a script with "chown -R user. /home/teamcity/example", added "user ALL=(root) NOPASSWD: /path/to/the/script.sh" to /etc/sudoers, and added "sudo /path/to/the/script.sh" as the first build step. |
Either I'm doing something really dumb, or RunAs plugin is unusable when you need to use temporary directory. The directory is created as
root:root
with 755 permissions, which makes build impossible to save anything.Work directory is also inaccessible, so running e.g. php composer produces:
The text was updated successfully, but these errors were encountered: