You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Noel Duffy (Commented) (JIRA)" <ji...@apache.org> on 2012/01/20 06:07:39 UTC
[jira] [Commented] (CHUKWA-630) Chukwa's RPM should create the user
'chukwa' before installation
[ https://issues.apache.org/jira/browse/CHUKWA-630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189626#comment-13189626 ]
Noel Duffy commented on CHUKWA-630:
-----------------------------------
I've written a small patch to add the new user, 'chukwa', when the rpm is installed. It will remove the user when the rpm is uninstalled.
Per feedback from Eric Yang on chukwa-users, the useradd call has been modified as follows:
- Long form of some useradd switches used for readability.
- -r switch added, so that the chukwa user's uid will be in the system range, that is, below 500.
- The command does not return an error if the rpm is being upgraded.
Changes that I haven't made, and the reason:
- -u 210. Does Chukwa need to select a specific uid? How should we handle that uid being already in use?
- --shell /bin/bash. Does Chukwa need a Bash shell? I would expect system accounts to not have valid shells.
- -M Not necessary. If -r is used, useradd will not create a home directory, regardless of login.defs, unless -m is given.
- -g hadoop. Does Chukwa need to be group hadoop? The user hadoop won't exist on most agent nodes, I would expect. On collectors, maybe.
Given the triviality of the patch, a prolonged argument isn't in anyone's interests, so if you think these should just be done, I will happily do so.
> Chukwa's RPM should create the user 'chukwa' before installation
> ----------------------------------------------------------------
>
> Key: CHUKWA-630
> URL: https://issues.apache.org/jira/browse/CHUKWA-630
> Project: Chukwa
> Issue Type: Improvement
> Components: build and test code
> Affects Versions: 0.4.0
> Environment: Redhat, RPM based
> Reporter: Noel Duffy
> Priority: Minor
> Labels: patch
> Attachments: CHUKWA-630.patch
>
>
> Chukwa's RPM, as built with 'ant rpm', sets the ownership of all files to user 'chukwa', but it does not create this user before installation. The rpm should create user 'chukwa' before installation and it should remove the user when the package is un-installed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira