LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2012, 01:41 PM   #31
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32

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.
 
Old 01-05-2012, 02:18 PM   #32
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
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.
 
Old 01-05-2012, 02:53 PM   #33
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
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
 
Old 01-05-2012, 03:27 PM   #34
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
[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 /]#
 
Old 01-05-2012, 03:34 PM   #35
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
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 /]#
 
Old 01-05-2012, 03:39 PM   #36
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
I am guessing at this point it must be permissions on the windows box...

agree?
 
Old 01-05-2012, 04:19 PM   #37
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
/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
 
Old 01-05-2012, 04:23 PM   #38
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
Was uid changed ? ls -l /mymount
 
Old 01-05-2012, 04:32 PM   #39
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
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?
 
Old 01-05-2012, 04:34 PM   #40
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
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.
 
Old 01-06-2012, 08:00 AM   #41
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
[root@cs /]# ls -l /mymount
ls: cannot open directory /mymount: Permission denied
[root@cs /]#
 
Old 01-06-2012, 08:25 AM   #42
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
And with: ls -ld /mymount
 
Old 01-06-2012, 08:49 AM   #43
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
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
 
Old 01-06-2012, 10:21 AM   #44
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
[root@cs /]# ls -ld /mymount
drwxrwxrwx. 2 4294967294 4294967294 64 Jan 4 08:43 /mymount
 
Old 01-06-2012, 10:23 AM   #45
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
[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 /]#
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-12-2016 12:30 AM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 11:22 AM
[SOLVED] mount.nfs: mount to NFS server 'rpcbind' failed w1k0 Slackware 4 03-30-2010 04:45 PM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 08:03 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration