Autor: Dan Egli Data: Dla: Exim Users Temat: Re: [Exim] exim on multiple machines via NFS
Dan Egli wrote:
> I'm sure I'm missing something as I'm quite inexperienced with NFS, but
> I can't figure it out.
>
> I am trying to run Exim in a multiple machine setup (1 machine handles
> input and output, one handles output only). On one machine I added
> /var/spool/exim to the /etc/exports, and I nfsmounted it rw on the other
> machine. I also added nfsnobody to the exim group. But despite nfsnobody
> being in exim's group, I cannot make the "remote" exim properly access
> the files from the "local" machine. I don't understand why. My
> /etc/exports on the NFS server reads:
>
> /var/spool/exim 192.168.0.0/24(rw)
>
> and on the "remote" machine, it's mounted with:
>
> mount -t nfs server:/var/spool/exim /var/spool/exim -o rw
>
> no matter what I try, I get errors like:
>
> 1BaPv1-0000xa-KL Couldn't create message log
> /var/spool/exim/msglog//1BaPv1-0000xa-KL: Permission denied
>
> or
> 1BaRvZ-0001AH-6c Couldn't chown message log
> /var/spool/exim/msglog//1BaRvZ-0001AH-6c: Operation not permitted
>
>
> I know people here have done it. What am I doing wrong? Is there a way I
> can connect to the NFS as a specific user vs just as the anonymous user?
>
> Thanks!
Seems I figured it out. I had to add no_root_squash to the export
options. When I changed (rw) to (rw,no_root_squash,sync), it started
working.