https://bugzilla.suse.com/show_bug.cgi?id=1217885 Bug ID: 1217885 Summary: dracut: the nfs module issues "rpc.statd: Running as root. chown /var/lib/nfs to choose different user" Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: dracut-maintainers@suse.de Reporter: antonio.feijoo@suse.com QA Contact: qa-bugs@suse.de CC: nfbrown@suse.com Target Milestone: --- Found By: --- Blocker: --- CC: nfbrown@suse.com Flags: needinfo?(nfbrown@suse.com) Created attachment 871199 --> https://bugzilla.suse.com/attachment.cgi?id=871199&action=edit dracut patch While testing the dracut nfs module in Tumbleweed, I found this warning in the journal:
Dec 07 14:07:30 localhost systemd[1]: Starting dracut pre-udev hook... Dec 07 14:07:30 localhost kernel: RPC: Registered named UNIX socket transport m> Dec 07 14:07:30 localhost kernel: RPC: Registered udp transport module. Dec 07 14:07:30 localhost kernel: RPC: Registered tcp transport module. Dec 07 14:07:30 localhost kernel: RPC: Registered tcp-with-tls transport module. Dec 07 14:07:30 localhost kernel: RPC: Registered tcp NFSv4.1 backchannel trans> Dec 07 14:07:30 localhost rpc.statd[363]: Version 2.6.3 starting Dec 07 14:07:30 localhost rpc.statd[363]: Initializing NSM state ---> Dec 07 14:07:30 localhost rpc.statd[363]: Running as root. chown /var/lib/nfs to choose different user Dec 07 14:07:30 localhost rpc.idmapd[477]: Setting log level to 0 Dec 07 14:07:30 localhost rpc.idmapd[477]: libnfsidmap: requested translation method, 'nsswitch', is not available Dec 07 14:07:30 localhost systemd[1]: Finished dracut pre-udev hook.
I never saw this in SLE, but then I noticed that nfs-utils adds the statd user via sysusers.d configuration since version 2.5.1:
$ rpm -qf /usr/lib/sysusers.d/statd-user.conf nfs-client-2.6.3-41.1.x86_64 $ cat /usr/lib/sysusers.d/statd-user.conf # Type Name ID GECOS [HOME] Shell u statd - "NFS statd daemon" /var/lib/nfs -
Also, the nfs-utils.spec file defines:
# lib/nfs must be root-owned. # sm and sm.back and contents should be statd:statd, # but only chown if the dirs are currently root-owned. # This is needed for some upgraded, but chown is best avoided # when not necessary ... %{_sysusersdir}/statd-user.conf %dir %{_localstatedir}/lib/nfs %dir %{_localstatedir}/lib/nfs/rpc_pipefs %dir %{_localstatedir}/lib/nfs/v4recovery %attr(0700,statd,statd) %dir %{_localstatedir}/lib/nfs/sm %attr(0700,statd,statd) %dir %{_localstatedir}/lib/nfs/sm.bak %ghost %{_localstatedir}/lib/nfs/state
Neil, I can't find this in nfs-utils upstream, is this SUSE-specific? how bad is this warning? should we add a custom patch (maybe similar to the one attached) to the dracut nfs module to avoid it? -- You are receiving this mail because: You are on the CC list for the bug.