Skip to contentSkip to conversation

rpcbind: set the owner of /run/rpcbind to rpc

PATCH New Yi Zhao 1 participant 1 message Nov 20, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 rpcbind: set the owner of /run/rpcbind to rpc

The current owner of /run/rpcbind is root, which prevents the rpc user from creating files in this directory. When the rpcbind service is stopped, the following errors are logged:

$ systemctl stop rpcbind
 systemd[1]: Stopping RPC Bind...
 rpcbind[270]: cannot open file = /run/rpcbind/rpcbind.xdr for writing
 rpcbind[270]: cannot save any registration
 rpcbind[270]: cannot open file = /run/rpcbind/portmap.xdr for writing
 rpcbind[270]: cannot save any registration
 systemd[1]: rpcbind.service: Deactivated successfully.
 systemd[1]: Stopped RPC Bind.

Set the owner of /run/rpcbind to rpc to fix this issue.

---
 meta/recipes-extended/rpcbind/rpcbind/rpcbind.tmpfiles | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/rpcbind/rpcbind/rpcbind.tmpfiles +1 -1
index fecee72c09..65805e7263 100644
@@ -1 +1 @@
-d /run/rpcbind 0755 root root -
+d /run/rpcbind 0755 rpc rpc -
Signature · 1 line
2.34.1