Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9706

Removing user on Solaris 11 with altered managehome

    XMLWordPrintable

Details

    • Night's Watch
    • PR - 2019-06-12
    • Needs Assessment
    • Bug Fix
    • Hide
      Bug Fix:
      This allows the removal of a user resource on Solaris that has the home directory setup.
      Show
      Bug Fix: This allows the removal of a user resource on Solaris that has the home directory setup.
    • Needs Assessment

    Description

      Puppet Version: 6.4.2
      Puppet Server Version: N/A
      OS Name/Version: Solaris 11

      Desired Behavior: Able to remove a user without any errors

      Actual Behavior:

      When applying the following an error occurs:

      root@yz4rr58lsjdxqz3:~# puppet apply -e 'user { "testuser": ensure => "present", managehome => false }'
      Notice: /File[/etc/puppetlabs/code/environments/production]/ensure: created
      Notice: Compiled catalog for yz4rr58lsjdxqz3.delivery.puppetlabs.net in environment production in 0.03 seconds
      Notice: /Stage[main]/Main/User[testuser]/ensure: created
      Notice: Applied catalog in 0.06 seconds
      root@yz4rr58lsjdxqz3:~# puppet apply -e 'user { "testuser": ensure => "absent",  managehome => true  }'
      Notice: Compiled catalog for yz4rr58lsjdxqz3.delivery.puppetlabs.net in environment production in 0.03 seconds
      Error: Could not delete user testuser: Execution of '/usr/sbin/userdel -r testuser' returned 12: UX: /usr/sbin/userdel: ERROR: Unable to remove home directory. No such file or directory
      Error: /Stage[main]/Main/User[testuser]/ensure: change from 'present' to 'absent' failed: Could not delete user testuser: Execution of '/usr/sbin/userdel -r testuser' returned 12: UX: /usr/sbin/userdel: ERROR: Unable to remove home directory. No such file or directory
      Notice: Applied catalog in 0.12 seconds// code placeholder
      

      We are seeing this issue in puppetlabs-accounts in https://github.com/puppetlabs/puppetlabs-accounts/pulls/222 when running adhoc against Solaris 11.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eimhin.laverty Eimhin Laverty
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support