You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ted Zlatanov (JIRA)" <ji...@apache.org> on 2010/04/19 21:47:52 UTC

[jira] Created: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
-----------------------------------------------------------------------------------------------------

                 Key: CASSANDRA-1004
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
             Project: Cassandra
          Issue Type: New Feature
            Reporter: Ted Zlatanov




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-1004:
--------------------------------------

         Assignee: Eric Evans
    Fix Version/s: 0.6.4
         Priority: Minor  (was: Major)
      Component/s: Packaging

> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Packaging
>            Reporter: Ted Zlatanov
>            Assignee: Eric Evans
>            Priority: Minor
>             Fix For: 0.6.4
>
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-1004:
--------------------------------------

    Fix Version/s: 0.7.0
                       (was: 0.6.4)

> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Packaging
>            Reporter: Ted Zlatanov
>            Assignee: Eric Evans
>            Priority: Minor
>             Fix For: 0.7.0
>
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894425#action_12894425 ] 

Eric Evans commented on CASSANDRA-1004:
---------------------------------------

This is fixed in r981326.

> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Packaging
>            Reporter: Ted Zlatanov
>            Assignee: Eric Evans
>            Priority: Minor
>             Fix For: 0.7 beta 1
>
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Manish Singh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manish Singh updated CASSANDRA-1004:
------------------------------------

    Attachment: cassandra-user.patch

This creates a "cassandra" user and runs cassandra as that user.

As far as making it configurable, I'm not sure there's a precedent in Debian to do that. Both mysql and redis packaging hardcode a user name as wel.

> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Ted Zlatanov
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879021#action_12879021 ] 

Eric Evans commented on CASSANDRA-1004:
---------------------------------------

Jonathan Ellis:
bq. CASSANDRA-1181 (which may or may not amount to anything) would require running Cassandra as root, fwiw

This _should_ be OK. My understanding of how jsvc drops privileges,  is that it occurs _after_ the JVM has been initialized, and after the apps init() has been called (so that you can bind to ports < 1024 for example).

http://commons.apache.org/daemon/jsvc.html

Ted Zlatanov:
bq. the user name should be specified in one place, not hard-coded as "cassandra". That way sites with real users named "cassandra" don't suffer and the sysadmin can choose to use "root" if appropriate

The point here is integration with Debian systems, and installing a service that should drop privileges at startup is something that results in the creation of a system user on Debian systems. If you don't want to run Cassandra as this user, you can always hack the init script (it is a conf file; changes will be preserved across upgrades).

> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Ted Zlatanov
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877665#action_12877665 ] 

Jonathan Ellis commented on CASSANDRA-1004:
-------------------------------------------

CASSANDRA-1181 (which may or may not amount to anything) would require running Cassandra as root, fwiw

> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Ted Zlatanov
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Ted Zlatanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877710#action_12877710 ] 

Ted Zlatanov commented on CASSANDRA-1004:
-----------------------------------------

Manish: the user name should be specified in one place, not hard-coded as "cassandra".  That way sites with real users named "cassandra" don't suffer and the sysadmin can choose to use "root" if appropriate (to address CASSANDRA-1181 or for other reasons).

Jonathan: that would be a problem for some sites, including ours.  I hope it's not required but optional.

> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Ted Zlatanov
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894546#action_12894546 ] 

Hudson commented on CASSANDRA-1004:
-----------------------------------

Integrated in Cassandra #507 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/507/])
    run as dedicated user on debian

Patch by eevans for CASSANDRA-1004


> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Packaging
>            Reporter: Ted Zlatanov
>            Assignee: Eric Evans
>            Priority: Minor
>             Fix For: 0.7 beta 1
>
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CASSANDRA-1004) Debian packaging should allow a specific user name and optionally create it as "cassandra" on install

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879024#action_12879024 ] 

Eric Evans commented on CASSANDRA-1004:
---------------------------------------

Manish, this looks pretty reasonable to me. However, I wonder if it wouldn't be best to make the chowns in postinst conditional, so that they only occur on upgrades from <= 0.6.2, or on fresh installs. That way if someone does hack the init script to run cassandra as a different user, their permissions aren't clobbered on each subsequent upgrade.

> Debian packaging should allow a specific user name and optionally create it as "cassandra" on install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1004
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1004
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Ted Zlatanov
>         Attachments: cassandra-user.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.