Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2159586

Summary: rc-local.service: Command /etc/rc.d/rc.local is not executable: Permission denied
Product: Red Hat Enterprise Linux 9 Reporter: Frank Liang <xiliang>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Frantisek Sumsal <fsumsal>
Severity: low Docs Contact:
Priority: low    
Version: 9.2CC: dtardon, libhe, linl, qzhang, systemd-maint-list, vkuznets, ymao
Target Milestone: rcKeywords: CustomerScenariosInitiative
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-10 09:31:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frank Liang 2023-01-10 04:03:43 UTC
Description of problem:
Found this message in RHEL-9.2 testing, /etc/rc.d/rc.local missing execution permission.

# systemd-analyze verify rc-local.service
rc-local.service: Command /etc/rc.d/rc.local is not executable: Permission denied
# ls -l /etc/rc.d/rc.local
-rw-r--r--. 1 root root 474 Dec  9 09:30 /etc/rc.d/rc.local
# rpm -qf /etc/rc.d/rc.local
systemd-252-2.el9.x86_64

# systemctl status rc-local.service
○ rc-local.service - /etc/rc.d/rc.local Compatibility
     Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static)
     Active: inactive (dead)
  Condition: start condition failed at Tue 2023-01-10 03:08:58 UTC; 48min ago
             └─ ConditionFileIsExecutable=/etc/rc.d/rc.local was not met
       Docs: man:systemd-rc-local-generator(8)

Jan 10 03:08:58 ip-10-116-2-188.us-west-2.compute.internal systemd[1]: /etc/rc.d/rc.local Compatibility was skipped because of an unmet condition check (ConditionFileIsExecutable=/etc/rc.d/rc.local).

RHEL Version:
RHEL-9.2(5.14.0-229.el9.x86_64)

How reproducible:
100%

Steps to Reproduce:
1. Create an RHEL-9.2 instance
2. systemd-analyze verify rc-local.service

Actual results:
/etc/rc.d/rc.local missing execution permission

Expected results:
/etc/rc.d/rc.local is executable

Additional info:
- N/A

Comment 1 David Tardon 2023-01-10 09:31:40 UTC
This is expected. The execution permission of /etc/rc.d/rc.local is taken as a hint for inclusion of rc-local.service in boot transaction (by systemd-rc-local-generator). rc.local is legacy, hence we only want to run it if the user actually uses it for something.

Comment 2 David Tardon 2023-02-06 10:27:00 UTC

*** This bug has been marked as a duplicate of bug 2068618 ***