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

/etc/rc.d/rc.local is not marked executable

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.1, rhel-9.7
    • systemd
    • None
    • None
    • None
    • rhel-systemd
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

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

      Get rid of this warning:

      systemd-rc-local-generator[97336]: /etc/rc.d/rc.local is not marked executable, skipping.

      What is the impact of this issue to you?

      Cosmetic but annoying.

      Please provide the package NVR for which the bug is seen:

      Seen on all versions shipped with RHEL 9 and RHEL 10.

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. sudo systemctl daemon-reload
      2. sudo dmesg --ctime (Warning shows)
      3. sudo chmod 0755 /etc/rc.d/rc.local
      4. sudo systemctl daemon-reload
      5. sudo dmesg --ctime (Warning disappeared)
      6. Update (or reinstall) sytemd
      7. sudo systemctl daemon-reload
      8. sudo dmesg --ctime (Warning shows)

      Expected results

      systemd provides /etc/rc.d/rc.local with 0775 permissions (or keeps user modified permissions)

      Actual results

      systemd provides /etc/rc.d/rc.local with 0644 permissions and overwrites user permission changes on update/reinstall.

       

              systemd-maint systemd maint mailing list
              sistemes@uji Juan Jose Villaplana Querol
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: