LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   using NFS - how to allow file system of another disk on server (https://www.linuxquestions.org/questions/linux-networking-3/using-nfs-how-to-allow-file-system-of-another-disk-on-server-4175533418/)

Birdman48 02-08-2015 07:12 AM

using NFS - how to allow file system of another disk on server
 
My server has two disks - one mapped root/data where I keep all my pictures. I'm having trouble accessing this filesystem frommy client using NFS. There are no other issues with NFS - I can access anything else. How should I edit the /etc/export file? Here is what I tried:
Code:

/home            192.168.1.4(rw,sync,no_root_squash,no_subtree_check)
/data          192.168.1.4(rw,sync,no_root_squash,no_subtree_check)
/var/nfs        192.168.1.4(rw,sync,no_subtree_check)

I've also tried /root/data and //data to no avail.

thanks

smallpond 02-08-2015 09:13 AM

You should not be root as the regular user on your system. There is too much potential for error. Standard setup on Linux systems is to disable root login and have a login as a regular user. Use sudo for admin tasks.

Your specific problem is mounting data under root's private directory /root. Fix the other problems and mount data at /data. Change the permissions so that it can be accessed by your regular user. Then you will be able to export it without problems.

Birdman48 02-08-2015 02:05 PM

I'm aware of the danger associated with logging on as root. I only do this for administration purposes. I have the file permissions as such:
Code:

drwxrwxrwx  11 root root  4096 Jan  6 09:08 data
Maybe too lenient? I should study up more. Anyway, I can access /data as a regular user on the server machine, but cannot on the client.

solved - I just wasn't mounting /data on the client. duh!
thanks


All times are GMT -5. The time now is 12:01 PM.