LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounted NFS directory can't mkdir (https://www.linuxquestions.org/questions/linux-newbie-8/mounted-nfs-directory-cant-mkdir-766368/)

rcmonroig 11-02-2009 10:19 PM

Mounted NFS directory can't mkdir
 
Fedora 10 system. Mounted cislab:/public/cm449 ./fileserver

Mounted fine on client workstation. Can ls the directory no problem. But can't create a directory to save backup files from my client workstation. I get a permission denied message. What am I missing? Your help would be greatly appreciated.

Thanks,
rc

linuxlover.chaitanya 11-02-2009 11:32 PM

With what options is the directory exported from the server? Have you checked if you have given right permissions for the remote systems to create files there?

AwesomeMachine 11-03-2009 03:07 AM

Look in the file /etc/exports. See if you have a proper netmask. It should look something like this:

/home/sam/stuff 192.168.0.1/255.255.255.0(root_squash,ro,sync,no_subtree_check,nohide)

The above line will allow export of /home/sam/stuff to all ip addresses in the 192.168.0.1-255 range. Also, try mounting the NFS drive like this:

sudo mount 192.168.0.23:/home/sam/stuff /mnt/stuff -t nfs

chrism01 11-03-2009 06:54 PM

You'll need to change the ro option to rw to be able to mkdir.

rcmonroig 11-04-2009 11:36 AM

options in /etc/exports
 
/public/cis126/cm449 192.168.1.0/24(rw,sync,no_root_squash)

linuxlover.chaitanya 11-04-2009 10:57 PM

I think the permissions in the exports are not the only that count and the permissions on the directory also count. You need to allow write permissions on the directory as well.


All times are GMT -5. The time now is 04:26 AM.