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

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.20.1, 0.21.0
    • None
    • security, util
    • None
    • 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. PermissionChecker.java.diff
          0.4 kB
          Urko Benito
        2. Shell.java.diff
          1 kB
          Urko Benito
        3. test-hadoop-security.tar.gz
          4.98 MB
          Urko Benito
        4. UnixUserGroupInformation.java.diff
          0.2 kB
          Urko Benito

        Issue Links

          Activity

            People

              Unassigned Unassigned
              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