[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NFS and no_root_squash - cannot write as root - permission denied (SOLVED)



Bob  <grantura@spamcop.net> writes:

> Jari Aalto wrote:
>
>> Can anyone suggest what might be wrong as root user cannot write to the
>> NFS mounted directory.
>>
>> At client, the mount succeeds, but write doesn't. The 'no_root_squash'
>> is enabled at server, the UUID's match, so where is the problem[1]?.
>>
>> Jari
>>
>> AT CLIENT (192.168.1.12 / Debian unstable)
>>
>> $ dpkg -l nfs-common
>> ii  nfs-common            1:1.1.3-1
>
> Bug #492970 [1]

Never would have guessed.

> Downgrade nfs-common to 1:1.1.2-6

According to the bug report, there is workaround. At client the error in
mount is "sec=null":

  $ cat /proc/mounts
  192.168.1.7:/srv/src /mnt/nfs/jondo/src nfs rw,noatime,nodiratime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,intr,proto=tcp,timeo=600,retrans=2,sec=null,mountproto=udp,addr=192.168.1.7 0 0

Mounting all NFS shares with explicit "sec=sys" allows root to write to
the share (it's still a bug in the NFS).

Thank you,
Jari

[1]
"nfs-common 1:1.1.3-1 client disallows access to files/directories where it should allow access"
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492970


Reply to: