Reply
Visitor
contecarli
Posts: 2
Registered: ‎02-14-2010
0
Accepted Solution

NFS on Linux: Permission denied when writing File

I've bought a BlackArmor NAS 110 yesterday and wanted to connect to it from my Ubuntu Linux machine using NFS. After some problems, I came across this post (Unable to nfs mount from BlackArmor 440) describing how to connect to the nfs share on Linux. (I missed out the <VolumeName>)

 

Now that I got the share mounted, I wanted to transfer some files to the drive, but whatever I try, I am not allowed to write to the NAS.

 

When I try to copy a file from my local directory to the mounted share, I get the following message:

cp: cannot create regular file `./test': Permission denied

 

When I write something in nano and want to save it to a file, I also get a "Permission denied" message.

 

The settings for the share are correct (Public Access: Enabled; NFS Access: Full access).

 

On Windows I can create and modify files without any problems. On Ubuntu I can also read all the files created on Windows. I just can't write any files to the drive with Ubuntu.

 

The command in my /etc/fstab to mount the share is:

IP:/DataVolume/Public /nfs/Public nfs rw,rsize=8192,wsize=8192,timeo=14,intr

 

How can I write files to the NAS Server? Which settings do I need?

 

BTW: If this part works, how would I connect to a private share? (How would I provide the username and password?)

Visitor
contecarli
Posts: 2
Registered: ‎02-14-2010
0

Re: NFS on Linux: Permission denied when writing File

Solved the problem!

 

When you change the NFS Access permissions to Full Access you have to restart the NAS server.

It doesn't automatically restart the nfs service^^

 

Kilobyte
ftpdave
Posts: 47
Registered: ‎02-03-2010
0

Re: NFS on Linux: Permission denied when writing File

It's not unusual that many network access problems are solved with a simple reboot.  I cannot count how may times people ask me about network problems that they have spent hours trying to resolve, and I go up to the machine and reboot it and the problem is fixed.  They just look at me with a funny expression on their faces.

 

But then there are real problems that will leave you scatching your head with frustation also.  Glad you sovled it, and a reboot solved one of my access problems also with my NAS.

Visitor
misc
Posts: 1
Registered: ‎09-13-2010
0

Re: NFS on Linux: Permission denied when writing File

Hi all,

 

I have NAS 220 and having difficulty in writing to  NFS mount on Linux.

 

Mounted NAS220 on Ubuntu Linux. The mount does not allow me to write.

<mymachine>:/media/nas$ touch x
touch: cannot touch `x': Read-only file system

Entry in fstab:
192.168.3.3:/DataVolume/Public  /media/nas      nfs     rw      0       0

Mount list is
192.168.3.3:/DataVolume/Public on /media/nas type nfs (rw,addr=192.168.3.3)

NFS service is enabled and IP Allowed is *.

 

Any ideas?