mount + copy files to mounted directory how to enable?
with the following mount command I can copy from 10.112.12.180 any file to the linux machine (/mnt)
mount -t nfs 10.112.12.180:/dir1/dir2/dir /mnt
my question if it possible to perform the other side: to copy from linux machine to 10.112.12.180 server
I try it but I get
cp file /mnt
cp: cannot create regular file `/mnt/file: Read-only file system
how to get solution for this (copy from linux to server?)
mount + copy files to mounted directory is it possible?
NFS can be quite tricky.
You should check /etc/exports file at the 10.112.12.180 and see if the share has been setup with read+write permissions (rw). A correct /etc/exports line should be something like
/dir1/dir2/dir xxx.xxx.xxx.xxx(rw)
... where xxx.xxx.xxx.xxx is the IP address (range) for your allowed NFS clients.
Also NFS might shoot you to the foot if you're trying to copy files as a different user than the one owning the NFS share.