Skip to content

add features to properly support using a shared install target with multiple users#902

Merged
boegel merged 8 commits intoeasybuilders:developfrom
boegel:shared_install_target
Apr 2, 2014
Merged

add features to properly support using a shared install target with multiple users#902
boegel merged 8 commits intoeasybuilders:developfrom
boegel:shared_install_target

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Apr 2, 2014

in the end, this should add support for:

  • --umask: set custom umask (and don't override it)
  • --group: set group to be used in installations (only verify)
  • --set-gid-bit: set group ID bit on directories (to make group ownership trickle down to new dirs/files)
  • --sticky-bit: set sticky bit on directories (to avoid that one user destroys the work of another user)

Comment thread easybuild/main.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why the leading 0?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

because I'm an idiot? :)

@ocaisa
Copy link
Copy Markdown
Member

ocaisa commented Apr 2, 2014

In my opinion it's ok to override the umask for the final installation (as it currently stands in the post_install step). This helps protect against careless use of --force and --robot (for example).

Comment thread easybuild/framework/easyblock.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this will fail hard if the group is not known (aka typo)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(ok, at this point one can maybe assume that this works, if it's properly catched/checked above)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok, handled

Comment thread easybuild/framework/easyblock.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this should be a if/elif construct to set self.group

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed, better now

@stdweird
Copy link
Copy Markdown
Contributor

stdweird commented Apr 2, 2014

@boegel reviewed

@stdweird
Copy link
Copy Markdown
Contributor

stdweird commented Apr 2, 2014

btw, does one still need newgrp if set_gid is used? all files will belong to this group, no?

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Apr 2, 2014

@stdweird: yes, once you have things set up correctly with set_gid bits on the relevant directories, you shouldn't need --group and newgrp anymore (that's partially the reason why it's being supported)

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Apr 2, 2014

@stdweird: remarks fixed, please check again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants