Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Change ownership of ephemeral mount to atmosphere user instead of root #153

Merged
merged 2 commits into from
Jun 18, 2018

Conversation

calvinmclean
Copy link
Contributor

Description

The ephemeral disk mounted on /scratch is owned by root by default. This adds a task to change the ownership of the /scratch directory to the user that owns the instance.

path: '{{ MOUNT_PATH }}'
recurse: yes
owner: '{{ ATMOUSERNAME }}'
group: "{{ ATMO_USER_GROUP }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to change permissions of every file in their scratch directory, this can take a long time and lock up the file system if they have many files. We should just not recurse here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIxed

@calvinmclean calvinmclean force-pushed the fix-ephemeral-ownership branch from 8514a8b to d42762d Compare June 18, 2018 17:47
@@ -2,6 +2,8 @@

disk_mounted_elsewhere: false

ATMO_USER_GROUP: "users"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you see if j7m uses the "users" group?

@cdosborn cdosborn merged commit cd56161 into cyverse:master Jun 18, 2018
@calvinmclean calvinmclean deleted the fix-ephemeral-ownership branch July 12, 2018 22:08
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants