Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 575C418224 for ; Wed, 18 Nov 2015 18:04:11 +0000 (UTC) Received: (qmail 80242 invoked by uid 500); 18 Nov 2015 18:04:11 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 80191 invoked by uid 500); 18 Nov 2015 18:04:11 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 80171 invoked by uid 99); 18 Nov 2015 18:04:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 18:04:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E951B2C1F5F for ; Wed, 18 Nov 2015 18:04:10 +0000 (UTC) Date: Wed, 18 Nov 2015 18:04:10 +0000 (UTC) From: "Alan Burlison (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12581) ShellBasedIdMapping needs suport for Solaris MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-12581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011553#comment-15011553 ] Alan Burlison commented on HADOOP-12581: ---------------------------------------- Hmm, interesting. On Solaris if the group name can't be resolved then the numeric id is output and 0 is returned as normal. We also have a /usr/xpg4/bin/id command, which is strictly POSIX-conformant, but I don't think the differences matter for this particular usage - they are to do with the behaviour of -a and supplemental groups. > ShellBasedIdMapping needs suport for Solaris > -------------------------------------------- > > Key: HADOOP-12581 > URL: https://issues.apache.org/jira/browse/HADOOP-12581 > Project: Hadoop Common > Issue Type: Sub-task > Components: security > Affects Versions: 2.7.1 > Environment: Solaris > Reporter: Alan Burlison > Assignee: Alan Burlison > > ShellBasedIdMapping only supports Linux and OSX, support for Solaris needs adding. > From looking at the Linux support in ShellBasedIdMapping, the same sequences of shell commands should work for Solaris as well so all that's probably needed is to change the implementation of checkSupportedPlatform() to treat Linux and Solaris the same way, plus possibly some renaming of other methods to make it more obvious they are not Linux-only. -- This message was sent by Atlassian JIRA (v6.3.4#6332)