Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-18-2007, 07:53 PM   #1
LQ Newbie
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Accessing an NFS share from ubuntu

Ok, firstly I'd like to say hello. I have recently decided to try out ubuntu. I installed 7.04 and had come trouble the first couple times but everything is ok and running smoothly now.

A few weeks ago I had setup myself a SOHO NAS, using It works great, I enabled the LDAP on the box, made some users and groups for security on my shares. I could connect to the SMB/CIFS share from window and MAC boxes, with the appropriate usernames and passwords of course. When I installed linux on my desktop now, I want to mount the share with NFS. I realize I could use the SMB share to mount it, but I would prefer to use NFS. I looked on the ubuntu wikis and all of that, and followed all of the guides to no avail. I have a few questions

1. If I have the share set to controlled access with my LDAP password, how do I type that in when mounting the NFS share with these instructions:
sudo mkdir /mnt/files

Edit configuration:

gksudo gedit /etc/fstab

Add something similar to below: /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0

Test new configuration:

sudo mount /mnt/files
I see no place to input the username and password.

2. I tried typing what was above, but I just received this error:
mount: failed, reason given by server: Permission denied
3. when putting the path into fstab, it's <hostip>:/path is the path the share path or the ACTUAL path on the server? (when I map the drive in windows XP, I use \\\backup.public.mystuff however I know that the actual path in linux is ../backup/public/mystuff) if it is the actual path i might have to change it to /dev/hda0/backup/.... ?

**Edit added question 4**

4. on the Openfiler box web gui, theres also the option for Run Insecure and Root Access for the NFS share. I left them disabled for now. What do they do?

Thanks for any responses in advance.

Last edited by marf; 09-18-2007 at 07:55 PM.
Old 09-19-2007, 01:05 PM   #2
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
I've never used LDAP, so I can't really help with that. For question 2, it may help if you can also look up the error given in the logs on the server side. Possibly putting your /etc/exports config file may help too, if there are any obvious configuration errors someone may spot them. For question 3, the path should be the actual path on the share, for example I have a music NFS share at home, which is /media/music. The NFS line for this share begins /media/music, and the clients that mount it do so via servername:/media/music. Note that while this is the full path on the server, it uses the mount point of the directory, not the /dev device path. For question 4, I don't know what "Run Insecure" corresponds to, but "Root Access" probably refers to the root_squash config option. By default, when someone on a client machine accesses a file on an NFS share as root on the client machine, the user ID is mapped by the NFS daemon onto an unprivileged user such as "nobody". Enabling root access means that the NFS server will allow any client that's allowed to access the share to access files as root. This effectively means that the NFS server doesn't actually verify root access to files, it just trusts the client if the client says that it needs root access to files. While there are situation that this can be useful, it is generally not a good idea to enable as it adds potential insecurity.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting NFS share in Ubuntu always creates read-only IMNOboist Linux - Networking 3 09-16-2007 11:55 PM
Authentication failure while accessing NFS share chnadrapaul Linux - Networking 3 08-14-2006 06:03 AM
Authentication failure while accessing NFS share chnadrapaul Red Hat 1 08-12-2006 01:37 AM
NFS share not available after server Ubuntu upgrade ming0 Linux - Networking 3 10-25-2004 11:30 PM
accessing NT Share plexi100 Linux - Networking 0 02-11-2004 08:05 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:38 PM.

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