LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NFS Mount (https://www.linuxquestions.org/questions/linux-newbie-8/nfs-mount-921984/)

kbscores 01-05-2012 12:41 PM

Are you mounting this as a specific user or root? It seems like you are trying to do this as a non-root user. Unless specified by root non-root users will not be able to mount specified device.

kbscores 01-05-2012 01:18 PM

Here this might help: Our Full procedure from both Windows and Linux Side

From Windows:

Network File Share “NFS” File sharing
This applies to setting up Windows 2003, Windows 2008 server to setup Unix accessible file or folder shares.

1. Install the NFS role, or on W2k3, install Windows Network file sharing service.
2. Edit the NFS Configuration:
a. In Windows 2003 this is done via the Network file sharing GUI located under administrative tools
b. In Windows 2008 this can be done under the “Share and storage Management” GUI or under “Edit Network File sharing configuration” wizard
3. Editing the NFS configuration
a. Selecting Identity Mapping Solution: Only required if you intend to setup a Active Directory Authentication, or User Name Mapping Authentication.

Note: I was unable to use the AD authentication on our network due to the requirement of a 2008 functional level Domain.

Note: I was unable to use a User Name Mapping Server, without a Win2K3 Server, the only version that supports the User Name Mapping Server service.

b. Setup Domain Authorization: This is not required at this point because our domain would not support AD authentication
c. Open firewall ports: Was not required on our network.. May be required to traverse networks.
d. Use NFS to Share Folders: This is the main part of the setup.
i. Click “Provision a Shared Folder Wizard” in the right pane.
ii. Browse to the Drive / folder you wish to share
iii. Select Next, select “yes” to change NTFS permissions
iv. Add the “Everyone” user account and provide the needed NFS permissions
Note: Everyone is not provided access to the NFS share you are creating, it only will allow the specific UID, GID account specified under the “Allow anonymous access” we will setup

Select “Next” and check the NFS share name.

Select “Next” and check “Allow anonymous access” Click “Edit” to the right of the permissions box, and set Full control.

Click “Add” and enter either the FQDN or the IP address of the Unix Host that needs to access this share. Ensure you give read write and root access rights.
Click Next and Next again to skip the Filter and Quota sections.

Go back to the Share and Storage Management console and refresh the display. The new NFS share should appear at the bottom. (in Win2k3 you will see the share listed under the NFS GUI.

Right click the share and select properties. Click the permissions TAB and select NFS permissions. Select the client unix computer / server that you entered and enter the Anonymous UID GID provided by the Unix department for that server. This is usually a 4 digit number and select Ok.

That’s it.. have them test the mount to this share from the Unix server side.

Linux:

As root create new directory to mount nfs share:
Code:

# mkdir /mymount
Change permissions on new directory
Code:

# chmod 777 /mymount
Verify mount is accessible: (Using IP is recommended, but hostnames are acceptable)
Code:

# showmount -e 111.111.111.111
Note: This should show something like
Code:

/sharedMount (everyone)
Next mount file system:
Code:

# mount -t nfs 111.111.111.111:/sharedMount /mymount
Note: If you are unable to mount at this point check window's sharing permissions
Note: If you are unable to cd to filesystem but it does mount then check window's directory permissions for specified user.



--Just as a heads up our window's team handles windows share - I asked for their procedure. Hopefully this helps ya out some.

Cedrik 01-05-2012 01:53 PM

Googlin' for uid 4294967294 brings some interesting results...

One suggests to mount nfs share as nfs v.3

Try it:

Code:

mount -t nfs -o vers=3 10.67.36.34:/RF7800N_NFS /NFS

dorlack 01-05-2012 02:27 PM

[root@cs /]# mount -t nfs -o vers=3 10.67.36.34:/RF7800N_NFS /NFS
mount.nfs: access denied by server while mounting (null)
[root@cs /]#

dorlack 01-05-2012 02:34 PM

RF7800N_NFS

[root@cs /]# mkdir /mymount
[root@cs /]# chmod 777 /mymount
[root@cs /]# showmount -e 10.67.36.34
Export list for 10.67.36.34:
/RF7800N_NFS (everyone)
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS /mymount
[root@cs /]# ls
bin dev home lost+found misc mymount NFS proc sbin srv tmp var
boot etc lib media mnt net opt root selinux sys usr
[root@cs /]# cd mymount
bash: cd: mymount: Permission denied
[root@cs /]#

dorlack 01-05-2012 02:39 PM

I am guessing at this point it must be permissions on the windows box...

agree?

dorlack 01-05-2012 03:19 PM

/RF7800N_NFS (everyone)
[root@cs /]# mount -t nfs 10.67.36.34:/RF7800N_NFS /mymount
mount.nfs: mount system call failed


after changes to server...

any ideas?

changed for anonymous access on server end

Cedrik 01-05-2012 03:23 PM

Was uid changed ? ls -l /mymount

kbscores 01-05-2012 03:32 PM

check to see if nfsnobody user exists on Linux box - and check uid of that user - when file system is mounted.

Who is owner of file system when it is mounted and if there is a uid what is uid?

kbscores 01-05-2012 03:34 PM

just as a general note - windows does not make nfs easy - their documentation has errors all over it so I seriously feel for anyone who ever has to utilize this method.

dorlack 01-06-2012 07:00 AM

[root@cs /]# ls -l /mymount
ls: cannot open directory /mymount: Permission denied
[root@cs /]#

Cedrik 01-06-2012 07:25 AM

And with: ls -ld /mymount

kbscores 01-06-2012 07:49 AM

Just do an ls on / and see who owns directory

if it is something other than UID 0 or root try to su to that user and access directory.

Althought this is still most likely a permissions issue on windows side -

Just googled and came up with this link for permissions on Windows side - maybe this will help some -

http://support.microsoft.com/kb/324544

dorlack 01-06-2012 09:21 AM

[root@cs /]# ls -ld /mymount
drwxrwxrwx. 2 4294967294 4294967294 64 Jan 4 08:43 /mymount

dorlack 01-06-2012 09:23 AM

[4294967294@cs /]$ mount -t nfs 10.67.36.34:/RF7800N_NFS /NFS
mount: only root can do that

---------- Post added 01-06-12 at 10:24 AM ----------

[root@cs /]# ls
bin boot dev etc home lib lost+found media misc mnt mymount net NFS opt proc root sbin selinux srv sys tmp usr var
[root@cs /]#


All times are GMT -5. The time now is 07:42 PM.