Skip to content
Contents
GuidesOpenWrt

How to keep custom rpcd ACLs across an OpenWrt upgrade

If Home Assistant could read router status before an upgrade but now gets permission denied, check whether the backup included your custom ACL. Check the individual file even when keeping settings.

If Home Assistant could read router status before an upgrade but now gets permission denied, check whether the backup included your custom ACL. Check the individual file even when keeping settings.

Check the file list first

Connect over SSH and substitute your own JSON path. The screenshots show an OpenWrt 25.12.6 x86 VM. An empty object tests inclusion only. It grants nothing and no firmware was flashed. Leave existing rules intact.

f=/usr/share/rpcd/acl.d/local-monitor.json
ls -l "$f"
sysupgrade -l

OpenWrt 25.12.6 · sysupgrade -l

If the file is gone, locate a pre-upgrade copy. If it exists but its full path is missing from the list, add the following single line to /etc/sysupgrade.conf once. Saving the whole directory could overwrite newer package rules.

/usr/share/rpcd/acl.d/local-monitor.json

Inspect the archive

Save and run these commands in the same session. Pick an unused temporary filename. The archive usually drops the leading slash. Stop if a command fails or the entry is absent.

sysupgrade -l
umask 077
sysupgrade -b /tmp/acl-check.tar.gz &&
  tar -tzf /tmp/acl-check.tar.gz

sysupgrade -b · usr/share/rpcd/acl.d/local-monitor.json

Copy the archive securely to your computer, check it opens and remove the temporary copy. It may contain keys. Keep settings during the upgrade.

Test with the original restricted account

After reboot, check the file and group names in /etc/config/rpcd. Sign in again. Read an allowed status and confirm a forbidden read still fails. Restore only your own missing rule from a trusted copy. If access widened, roll back the rule, restart rpcd during maintenance and sign in again. Removing the list entry affects future backups only.

What does an OpenWrt configuration backup restore?

Explore hardware

Comments