hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HADOOP-12505) ShellBasedUnixGroupMapping should support group names with space
Date Mon, 26 Oct 2015 17:09:27 GMT

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

Allen Wittenauer edited comment on HADOOP-12505 at 10/26/15 5:09 PM:
---------------------------------------------------------------------

bq. I just want to add that Linux also allows numerical group names (i.e. group names that
starts with digits)

Let's be careful here.  An admin can add whatever they want to the group file; that doesn't
mean it's *legal*.  Rarely to do folks run group check utilities (grpck on Linux) to verify
that their definitions are actually valid.

bq. . I wonder if there's documentation for this kind of thing on Linux or *NIX.

Yes, definitely. See section "3.190 Group Name":  http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html
.  The "portable filename character set" is defined later on in the same manual.

(... and, for those unclear, that above is the *official* definition for anything that carries
the UNIX trademark.)


was (Author: aw):
bq. I just want to add that Linux also allows numerical group names (i.e. group names that
starts with digits)

Let's be careful here.  An admin can add whatever they want to the group file; that doesn't
mean it's *legal*.  Rarely to do folks run group check utilities (grpck on Linux) to verify
that their definitions are actually valid.

bq. . I wonder if there's documentation for this kind of thing on Linux or *NIX.

Yes, definitely. See section "3.190 Group Name":  http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html
.  The "portable filename character set" is defined later on in the same manual.


> ShellBasedUnixGroupMapping should support group names with space
> ----------------------------------------------------------------
>
>                 Key: HADOOP-12505
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12505
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Wei-Chiu Chuang
>            Assignee: Wei-Chiu Chuang
>
> In a typical configuration, group name is obtained from AD through SSSD/LDAP. AD permits
group names with space (e.g. "Domain Users").
> Unfortunately, the present implementation of ShellBasedUnixGroupMapping parses the output
of shell command "id -Gn", and assumes group names are separated by space.
> This could be achieved by using a combination of shell scripts, for example,
> bash -c 'id -G weichiu | tr " " "\n" | xargs -I % getent group "%" | cut -d":" -f1'
> But I am still looking for a more compact form, and potentially more efficient one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message