Skip to content
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

Implemented chown file permissions and user/group creation #84

Merged
merged 1 commit into from
Nov 25, 2013
Merged

Implemented chown file permissions and user/group creation #84

merged 1 commit into from
Nov 25, 2013

Conversation

muuki88
Copy link
Contributor

@muuki88 muuki88 commented Nov 21, 2013

Ticket #62: File Permissions - user isn't set?

If tested this on Ubuntu 13.10 and it works smoothly. I added some logging that the user has the chance to know what happend to his/her postrm and postinst files.

Ticket #62: File Permissions - user isn't set?
@lightbend-cla-validator

@muuki88 Please sign the latest Typesafe Contributors License Agreement so that we can review and hopefully merge this Pull Request:
http://typesafe.com/contribute/cla

;;
purge)
deluser --quiet --system ${{user}} > /dev/null || true
delgroup --quiet --system ${{group}} > /dev/null || true
Copy link
Member

Choose a reason for hiding this comment

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

Are we sure we can delete the group always?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good point. Actually we don't have any clue about the user/group.
I think we have two options

  1. We remove this behavior. This will leave traces of the application after purging.
  2. Make this behavior configurable.

For 2. this would need a setting like

debianRemoveUser := true

debianRemoveGroup := true

and question is: What are the default values.

Copy link
Member

Choose a reason for hiding this comment

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

hmm.... Well for now maybe we'll just document that it has to be a unique user for this service. That's generally a standard good practice. However, it does mean multiple services that are supposed to have the same user won't quite work. In that case, you want a DEB which adds the user/group, and then depend on that I think. In that case, you're probably directly implementing things.

SO, I'd say how it is now is fine for now.

@jsuereth
Copy link
Member

Really smooth PR. Looks great! Just a few minor questions for you and I'll merge if everything is still ok.

@jsuereth
Copy link
Member

Cool. Thanks for the work, again!

jsuereth added a commit that referenced this pull request Nov 25, 2013
Implemented chown file permissions and user/group creation
@jsuereth jsuereth merged commit 6092cad into sbt:master Nov 25, 2013
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