You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/08/30 02:25:02 UTC

[jira] [Commented] (CASSANDRA-13782) Cassandra RPM has wrong owner for /usr/share directories

    [ https://issues.apache.org/jira/browse/CASSANDRA-13782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16146499#comment-16146499 ] 

ASF GitHub Bot commented on CASSANDRA-13782:
--------------------------------------------

GitHub user sasayabaku opened a pull request:

    https://github.com/apache/cassandra/pull/144

    [CASSANDRA-13782] RPM has wrong owner for /usr/share directories

    Some Cassandra RPM directories are owned by "cassandra" user against the fedora package guidelines.
    I changed redhat/cassandra.spec for giving the directories and files to appropriate owner.
    
    $ls -l /usr/share | grep cassandra
    [Before]
    drwxr-xr-x   3 cassandra cassandra    86 Aug 30 10:46 cassandra
    [After]
    drwxr-xr-x   3 root root    86 Aug 29 18:03 cassandra
    
    $ls -l /usr/share/cassandra/
    [Before]
    -rwxr-xr-x 1 cassandra cassandra 6406219 Aug 30 10:44 apache-cassandra-4.0.jar
    -rwxr-xr-x 1 cassandra cassandra     742 Aug 30 10:22 cassandra.in.sh
    drwxr-xr-x 4 cassandra cassandra    4096 Aug 30 10:46 lib
    -rwxr-xr-x 1 cassandra cassandra  505000 Aug 30 10:44 stress.jar
    [After]
    -rwxr-xr-x 1 root root 6405131 Aug 29 18:01 apache-cassandra-4.0.jar
    -rwxr-xr-x 1 root root     742 Aug 29 17:12 cassandra.in.sh
    drwxr-xr-x 4 root root    4096 Aug 29 18:03 lib
    -rwxr-xr-x 1 root root  505000 Aug 29 18:01 stress.jar

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sasayabaku/cassandra trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cassandra/pull/144.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #144
    
----
commit 04bf41ad514860f8025030017e8682a25e2639d0
Author: sasayabaku <sa...@yahoo.co.jp>
Date:   2017-08-29T05:20:52Z

    chenge owner to
     root

----


> Cassandra RPM has wrong owner for /usr/share directories
> --------------------------------------------------------
>
>                 Key: CASSANDRA-13782
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13782
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: Packaging
>            Reporter: Hannu Kröger
>              Labels: lhf
>
> Some Cassandra RPM directories are owned by cassandra user against the fedora package guidelines.
> Offending lines: https://github.com/apache/cassandra/blob/trunk/redhat/cassandra.spec#L135-L136
> "Permissions on files MUST be set properly. Inside of /usr, files should be owned by root:root unless a more specific user or group is needed for security."
> - https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#File_Permissions



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org