Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-35327

/etc/default not owned by any package

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.5
    • rhel-8.0.0, rhel-9.0.0
    • filesystem
    • None
    • filesystem-3.16-3.el9
    • None
    • None
    • rhel-sst-cs-stacks
    • ssg_core_services
    • 22
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Customer, on case 03808114, is complaining /etc/default is not being owned by any package, and, in his point of view, it should be:

       
      That way you have one single point of truth regarding permissions/ownership and group. Customer is an ISV OEM partner, that ships RHEL within the systems they provide.

      Customer is preparing a sanity check that will rely on RPMdb to check and fix eventual permission changes on the systems they manage. 

      Customer is using RHEL8.4 now, and will be switching to 8.10 soon, and probably will remain with this version for the long term (10 years), skipping RHEL9 and going straight to RHEL10, along with their own integration lifecycle.

      In fact, til RHEL7, this folder was owned by glibc-common package, but on RHEL8 and 9 it is not, so it looks like it's handled by anaconda installer. 

      Also, and it makes sense in my point of view, we have filesystem package that handles, besides other paths, /etc/sysconfig (folder for the same purpose, historical reasons for the segregation). 

       

      What is/what should be the rational for letting anaconda handle this particular folder and not filesystem?

       

      Please provide the package NVR for which bug is seen:

      How reproducible:

      {{[sysop@rhel84-desktop firefox]$ rpm -qf /etc/default}}
      {{file /etc/default is not owned by any package}}
      {{[sysop@rhel84-desktop firefox]$ rpm -qf /etc/default/useradd}}
      {{shadow-utils-4.6-12.el8.x86_64}}
      {{[sysop@rhel84-desktop firefox]$ for i in $(rpm -qa); do rpm -q --scripts $i |grep -i "/etc/default"; done}}
      {{if [ -r "/etc/default/grub" ]; then}}
      {{    /etc/default/grub}}
      {{# unpatch /etc/default/grub}}
      {{  if [ -r "/etc/default/grub" ]; then}}
      {{{{    sed -i '/GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT:+$GRUB_CMDLINE_LINUX_DEFAULT }}}
      $tuned_params"/d' /etc/default/grub}}
      {{[sysop@rhel84-desktop firefox]}}

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

              rhn-support-mosvald Martin Osvald
              rh-ee-hferreir Hugo Ferreira (Inactive)
              Martin Osvald Martin Osvald
              Frantisek Hrdina Frantisek Hrdina
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: