Mounting NFS share on NFS client

Mounting NFS share on NFS client

Now click on OK twice and come out of the folder properties saving the changes you've made, open a command prompt and run – showmount –e.
This should return the exports list for this system and should list the folder you just shared –

Next step is to check the NTFS permission on this folder. Windows Server 2003 systems do not include anonymous users in the Everyone group and you need to manually add the Anonymous Logons group to the access list (I have done that before going any further). This KB article talks more about it.

We are now ready to go to the NFS client and mount this share.
Run the showmount command from your client –

Now, you can mount it on a Linux host using the following command –
mount –t nfs NFSSRV:/nfsshare /mnt/nfs

Let’s go ahead and run some of our favorite commands –

I have mounted the share on /mnt/nfs on this box and what I did was go to /mnt directory and see what are the ownerships and permissions shown for this mount (remember after you mount a NFS share on a directory the permissions shown are that of the NFS share mounted and not of the directory which is the mount point). Then I switched to that mount point and then created myfile1 using touch command. Next thing I did was to list everything there.

<< Sharing folders over NFS Back to post Who's 4294967294? >>

Comments (20)

  1. Dan Summers says:

    Excellent. Vital information simply presented. Thank you.

  2. S. Karthikeyan says:

    I have been trying to configure microsoft SFU NFS server on my system. I get an input output/error even after i follow your steps exactly.

    1) started the nfs server

    2) shared a folder as told here

    3) mounted it from linux

    4) doing an ls -l tp that folder gives me

    ls: nfsshare: Input/output error

    Please respond here.

  3. ashisa says:

    Sorry, was away for thanksgiving holidays.

    Is this a really large folder? You can try changing the SecureHandleLevel registry setting to 0 and see if that helps –


  4. Gele says:

    I didn`t succeed. Tried everything. Seems that MS doesn`t test if this work anymore.

    I`ve set everything to be logged, and windows thinks that mount was succesful. Linux (kernel 2.6.x, busybox) waits and then says: "Input output/error"

  5. Gele says:

    Ups, I was wrong – later i was able to mount it. It`s O.K, the problem was in my linux environment – rpc.statd, rpc.lockd and … should all be running, and it wasn`t in my initrd environment (before root /  FS was mounted).

  6. Gert says:

    I successfully folowed the instructions here until the mount on a client. I do not use LINUX but AIX.

    The mount operation works fine and shows the directory with 700 and owner nobody and group nobody (which translates to 4294967294 in both cases).

    When I try as root to cd to the mounted directory, I receive a "permission denied".

    Up to here I didn’t do any usermapping.

    The file server (i.e. the nfs server) is R2 while the DCs are R1.

    Thank you in advance.

  7. ashisa says:

    Hi Gert,

    By default, all NFS servers translate root access from clients as anonymous access and you would see this error.

    You will have to either turn off root squash on the AIX server or change the permissions on the directory to 777.

    I guess you need to add root=hostname to turn off root squashing in AIX.

  8. Gert says:

    Hi sfu!

    Thank you for your explanations. But I need another kick to put me back on tracks…

    I unchecked the anonymous access in Permissions on the W2k3 server – means everybody has to be authenticated when accessing this share. Right?

    When I mount this directory on AIX I still get the 700 and nobody/nobody:

    ekds21#/tmp>>ls -ld aixhome

    drwx——   2 nobody   nobody           64 Dec 12 10:46 aixhome

    I’m still missing the point where and how to tell my AIX client not to squash. The whole documentation of AIX 5.2 doesn’t use the word quash. Can you pls tell me a bit more about that?

    When I try to cd I now get:

    ekds21#/tmp>>cd aixhome

    /usr/bin/ksh: aixhome: 0403-036 The specified directory is not valid.

    ekds21#/tmp>>NFS access failed for server ekds30: error 7 (RPC: Authentication error)

    This isn’t nice but brings me to a central point: How to authenticate?

    We use NIS from W2k3 – no AIX based servers, even no NIS slave servers. Everything regarding users and passwords is done within Active Directory.

    The help for NFS mentions, that the process of authentication has been greatly improved in R2. The W2k3 NFS server should be able to query Active Directory. But that requires that the DCs are on R2 as well (i.e. schema 31) – mine are not. They are still on schema 30 and refuse to upgrade.

    My DCs run NIS for users, groups, passwords and automount nismaps but nothing more – no NFS, no Interix, no usermapping.

    What must I do to provide the authentication feature to the R2 NFS server?

    Thank you for your patience.

  9. ashisa says:


    Since your schema is not on R2 level. You cannot use the AD lookup feature. You need to configure User name mapping and map all the users who you want to be able to access this share.

    Root access allowed option also needs to be turned on so that root is treated as root by the NFS server.

    On the schema upgrade issue, may be you should consider opening a support case with Microsoft. To start with, you can use Services for UNIX discussion group.

    – Ashish

  10. I’m also getting permission denied trying to access the folders. The actual folder shows correctly:

    paulh@okami:~$ ls -lad /mnt/nfs

    dr-x—— 2 paulh domain users 64 2008-02-28 16:22 /mnt/nfs

    (and if I make the allmachines export read-write that becomes drwx correctly)


    paulh@okami:~$ ls -la /mnt/nfs

    ls: /mnt/nfs: Permission denied

    Just to confirm:

    paulh@okami:~$ ls -ladn /mnt/nfs

    dr-x—— 2 2576 1013 64 2008-02-28 16:22 /mnt/nfs

    paulh@okami:~$ id

    uid=2576(paulh) gid=1013(domain users) groups=24(cdrom),1013(domain users)

    This is with Linux 2.6.18 NFS client, mount command is

    mount -t nfs windowsbox:/exportname nfs

    I’m stumped…

  11. Hmm. Just reread the documentation, and realised that since we run a Samba-based domain, we can’t install NFS Server Authentication on a Domain controller, and I suspect that’s what’s causing permission to be denied.

  12. ashisa says:

    Based on this information, I don’t see any reason for paulh not being able to get in to this directory.

    What is access type for ALL_MACHINES?

    Capturing the network traffic starting from mount can show us what is the actual response coming back from the server.

    Use the Email link on the blog to send me a mail so that I can share my email ID with you.

    – Ashish

  13. ashisa says:

    You’re right. You might to enable Anonymous access if that serves your purpose.

    – Ashish

  14. Tomi M says:

    We have Fedora Core 8 and we are trying to mount a NFS volume on a W2003 R2 server. The mounting of the folder doesn’t return an error but we’re unable to access the mounted folder from Fedora.

    The mounted folder on W2003 is configured to allow anonymous user access and ALL MACHINES is configured to have read and write access as well as root access.  The command we use for mounting is

    mount -t nfs /mnt/data

    After mounting the folder, the folder cannot be accessed from the linux machine. Trying to list the folder content gives the following error.

    Permission denied

    command ls -ld /mnt/data

    returns folder permissions drwx———– and user and group ids 4294967214 which I guess is the same as -2

    We have been using Fedora root account for mounting.

    Any ideas what could be going wrong?

  15. ashisa says:

    Although a network trace can reveal the exact problem, I would first ask to check if Anonymous Logon and Everyone groups have been granted full control on the Windows side.

    To get root access working, you need to have Administrator and root mapping in UNM. I hope that is taken care of.

    – Ashish

  16. Set up Server for NFS in Windows Server 2003 R2 In this post, I will talk about configuring Microsoft

  17. Rahim says:

    I am using Likewise-Open and SFU to allow a centralized user authentication method. The things is that SFU NFS server works for a while . By works i mean it shows the Domain^users group as the group on the nfs and the dmain user UID as the user to the files or folders make by them in their NFS shares. But at least once a day the user mapping service dies , when this happens it shows all UID & GID’s as 4294967214. me and the rest of the IT guys have noticed that this also happens when one of the USERS mounts the nfs share to a AIX box. why does this happen, can we change it. why does the user not have permission to ls the nfs share yet they can create their own folder in it. do i need the user mapping service turened on

  18. ashisa says:


    Please get in touch with me using the Email link. I would need more details about how the Windows box is configured to make any useful comments on this problem.

    – Ashish

  19. Set up Services for Network File System in Windows Server 2008 The Microsoft Services for NFS continues

  20. Jim says:

    Here’s a nifty trick that I always do when I create directories to mount something on. . .

    Issue:  It is not possible – by inspection (viewing the directories content) to understand if the directory is mounted or not – unless you happen to know what’s supposed to be there.


    Assume directory /mnt/CDROM exists – and is used to mount the content of a CD-ROM drive over.

    Before I mount anything on a directory used as a mount-point, I always cd to the mount-point and then:

    sudo touch ‘Not Mounted Yet!’

    (the single quotes are important)

    This places a "file" (changeable only by root!) in the mount-point directory that says "Not Mounted Yet!"

    Once you mount the device (or whatever) on this mount-point – this message goes away, and you should be talking directly to the mounted resource.

    I like to do this because – sometimes – a "mount" or "umount" command returns without having done anything – or emitted an error message – leaving me to wonder if it REALLY worked.

    Since I started this little practice, I can always verify that a resource validly mounted where I placed it – even if the resource is empty.

    Oh, yea, you can run "mount" and see your mount points – but on many systems "mount" returns about a half-page of gibberish with the info you’re looking for buried in it.  I find CD’ing to the directory in question, then doing an ls – is usually faster since I am likely to be nearby (in the directory structure) anyway.

    What say ye?


Skip to main content