Re: NFS root permission denied in 'clearcritlocal'?

Rhialto <[email protected]>
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
On Wed 20 May 2026 at 10:48:47 -0500, John D. Baker wrote:
> I've maintained netboot/NFS-root setups for my machines for well over
> a decade, but recently something broke and now when '/etc/rc' runs on
> a diskless client, the cleanup of "/var/run/" in '/etc/rc.d/clearcritlocal'
> fails with all 'rm' attempts claiming "permission denied".
> 
> NFS root directories (which include "/var") are exported only to
> each individual host with "-maproot=root" and shared directories
> ("/usr", "/var/lib") are exported to a netgroup of same-arch hosts
> also with "-maproot=root".

It sounds like you are trying to export the same file system with
different options (/var and /var/lib). Even if /var is a separate file
system from /, /var/lib would typically be on the same file system. Last
I checked, that wasn't really possible.

> I did notice a message from 'mountd' the last time I rebooted the file
> server about "Can't update exports for <exported fs> (Operation not
> permitted)", but I haven't investigated it yet.

This message seems to be consistent with that.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose
signature.asc (application/pgp-signature, 525 B)
-----BEGIN PGP SIGNATURE-----

iQFPBAEBCAA5FiEEFVAhiiWjqgwBVdQAmYnGRWHD+9MFAmoN6O8bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwzAAoJEJmJxkVhw/vTWBYH/2FW4FekNmsMqp7aw+Iy
KgdOQU2ZeU82z6PHGFFx28HUaycghUNfJFdn5N42BdyoQIW0xzdTPVND6VNJMqx/
drCp2PRw8xPkOW01tYLJ58wIDAOmSBFRBpCY0Af7e8Hg9/dR4533BYiaNuFVyotd
Cs0U5mOKx8tw8eKyJB6SXKWii8frcxKJWzITN+xBexsyvlhhSK78m+27w8Pv44Zk
JIK0+lVxER3FY/t1SGG3pekxQvFwlsV1kNnAGdbahDTg/3EOx1q/HSAwN0cDlA3Y
HDrDX+xpkL/bO/Iv3uwTLNlD0GqUu6JBaDNJV+R1G1Sr03kzU1M2DPdS0O7H8cGh
Ioo=
=pynz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.