exportfs
Nils Kassube
kassube at gmx.net
Sat Sep 1 04:54:28 UTC 2007
hong zhang wrote:
> I did "sudo nfs-kernel-server start" and "exportfs
> -rv"
> returns
>
> exportfs: can't open /var/lib/nfs/etab.tmp for writing
ls -ld /var/lib/nfs/
drwxr-xr-x 5 root root 4096 Sep 1 06:48 /var/lib/nfs/
As a normal user you don't have access to /var/lib/nfs/. Make your command
sudo exportfs -rv
and it should work.
> Actually, etab.tmp does not exist.
>
> sudo chmod 777 /var/lib/nfs/etab.tmp
> chmod: cannot access `/var/lib/nfs/etab.tmp': No such
> file or directory
With chmod you can't create a file. But you don't need that file anyway.
It is used temporally by exportfs (if run as root).
> Can user create the etab.tmp?
No -- see above.
Nils
More information about the ubuntu-users
mailing list