Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1586

facter has FATAL failure on AIX when run as non-root user from non-readable directory

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • FACT 3.4.2
    • None
    • None
    • Hide

      Don't die if we don't have permission on the current working directory when facter is started.

      Show
      Don't die if we don't have permission on the current working directory when facter is started.
    • Platform OS
    • No Action
    • A test for this problem is already being added

    Description

      I was creating a test that verifies that we can collect facts from a non-root users home directory in the supported locations.

      tests/external_facts/non_root_users_default_external_fact_directory.rb

      On AIX the test is failing because facter gets a FATAL error.

      pe-aix-61-acceptance.delivery.puppetlabs.net (aix61-POWER-1) 14:03:54$ su nonroot -c "/opt/puppetlabs/bin/facter test"
      shell-init: error retrieving current directory: getcwd: cannot access parent directories: The file access permissions do not allow the specified action.
      2017-03-09 14:03:54.560821 FATAL puppetlabs.facter - unhandled exception: boost::filesystem::current_path: Permission denied

      We should handle this

      Attachments

        Activity

          People

            Unassigned Unassigned
            eric.delaney Eric Delaney
            Eric Delaney Eric Delaney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support