You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2014/07/23 22:32:39 UTC

[jira] [Resolved] (HADOOP-6272) Incorrect UserName at Solaris because it has no "whoami" command by default

     [ https://issues.apache.org/jira/browse/HADOOP-6272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allen Wittenauer resolved HADOOP-6272.
--------------------------------------

    Resolution: Fixed

JNI code was eventually added that eliminates this issue...

.. except for the fact that that code doesn't compile on anything but Linux at any given moment.

Still, I'm going to close this.

> Incorrect UserName at Solaris because it has no "whoami" command by default
> ---------------------------------------------------------------------------
>
>                 Key: HADOOP-6272
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6272
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security, util
>    Affects Versions: 0.20.1, 0.21.0
>         Environment: OS: SunOS 5.10
>            Reporter: Urko Benito
>         Attachments: PermissionChecker.java.diff, Shell.java.diff, UnixUserGroupInformation.java.diff, test-hadoop-security.tar.gz
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Solaris enviroment has no __whoami__ command, so the __getUnixUserName()__ at UnixUserGroupInformation class fails because it's calling to Shell.USER_NAME_COMMAND which is defines as "whoami".
> So it launched an Exception and set the default "DrWho" username ignoring all the FileSystem permissions.



--
This message was sent by Atlassian JIRA
(v6.2#6252)