LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-08-2015, 07:12 AM   #1
Birdman48
Member
 
Registered: Aug 2008
Location: Southern Maryland
Distribution: ubuntu 14.04 LTS
Posts: 113

Rep: Reputation: 1
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
 
Old 02-08-2015, 09:13 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,149

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
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.
 
Old 02-08-2015, 02:05 PM   #3
Birdman48
Member
 
Registered: Aug 2008
Location: Southern Maryland
Distribution: ubuntu 14.04 LTS
Posts: 113

Original Poster
Rep: Reputation: 1
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

Last edited by Birdman48; 02-08-2015 at 05:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
export NFS mounted file system via NFS smkamene Linux - Networking 3 02-10-2009 03:12 PM
System collapse without kernel panic when copy file to a sata-disk or usb-disk JammyWei Linux - Embedded & Single-board computer 0 12-25-2008 08:21 PM
LXer: Network File System (NFS) Server and Client Configuration in Debian LXer Syndicated Linux News 0 03-12-2007 11:01 AM
NFS server - client cannot mount remote file system mikemrh9 Linux - Networking 6 10-12-2006 11:05 PM
How can I nfs mount an NTFS file system on my linux server jj4broder Linux - Networking 4 09-30-2003 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration