Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6272

Incorrect UserName at Solaris because it has no "whoami" command by default

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.1, 0.21.0
    • Fix Version/s: None
    • Component/s: security, util
    • Labels:
      None
    • Environment:

      OS: SunOS 5.10

      Description

      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.

        Attachments

        1. Shell.java.diff
          1 kB
          Urko Benito
        2. UnixUserGroupInformation.java.diff
          0.2 kB
          Urko Benito
        3. PermissionChecker.java.diff
          0.4 kB
          Urko Benito
        4. test-hadoop-security.tar.gz
          4.98 MB
          Urko Benito

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                itily Urko Benito
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified