Monday, February 25, 2008

mountd problem: "Can't change attributes"

A very weird problem on a NetBSD 2.0.2 (I know. It's really old, but I don't have time to upgrade it yet). It seems only the first directory in /etc/exports can be successfully exported. Other lines cause this error:

[kung@lion2 wireless_drivers]$ cat /etc/exports
/mnt/extra/exports/mesh-allrw -maproot=32767:39 mesh-c mesh-d mesh-e mesh-f mesh-g mesh-i mesh-j mesh-l
/mnt/extra/exports/mesh-allro -maproot=32767:39 -ro mesh-c mesh-d mesh-e mesh-f mesh-g mesh-i mesh-j mesh-l

Error messages:
Feb 24 19:20:15 lion2 mountd[6982]: "/mnt/extra/exports/mesh-allro -maproot", line 2: Can't change attributes for /mnt/extra/exports/mesh-allro to mesh-c: Operation not permitted


I have no idea why it would happen. But it seems only the first line of /etc/exports will work. It maybe a bug of this very old version of NetBSD. I will upgrade the machine to a more recent version of NetBSD soon.

No comments: