LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 08-09-2008, 08:30 AM   #1
martindp210
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Question NFS mounting between Fedora and OpenSolaris


Hello everybody!

I'm having the following problem:

I'm setting up a network of two Virtual Machines, one is running Fedora Core 4, the other OpenSolaris 2008.05. The network itself is working fine. It's not intended to ever be connected to the outside world, so security can be as low as possible.

I have to share a folder from Fedora to Solaris via NFS - Fedora being the Server and Solaris the client. I'm aware that NFS identifies users by UID, so my /etc/exports on the Fedora looks like this:

/usr/mydir @mygroup(rw,all_squash,anonuid=500,anongid=500)

The idea is that all requests will be treated as coming from the Fedora user with UID 500, who is owner of /usr/mydir (not of all of the files inside though).

Now, on the Solaris machine I want the shared directory to be mounted by automount, so my file /etc/auto_master is:

+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse
/- /etc/auto_direct

and the /etc/auto_direct looks like this:

/usr/mymountpoint fedorahost:/usr/mydir

The mounting itself seems to work ok, because when I run automount -v I get the message

automount: /usr/mymountpoint mounted
(or unmounted, on alternate runs, of course)


So the directory seems mounted, but I can't access it! When I try an ls /usr/mymountpoint I get a 'Permission denied'. I suspect that there is still a problem with the UID, but I thought I had it fixed by using the options mentioned above in my Fedora /etc/exports file.

And now comes the even weirder part:

I tried to mount it manually from the Solaris, by the command

mount fedorahost:/usr/mydir /usr/mymountpoint

and then it doesn't even mount, I get the message

nfs mount: mount: /usr/mymountpoint: not owner

but I am owner of the mountpoint! I changed ownership of the mountpoint from myuser to root and back, and it didn't make a difference.

If anyone has some ideas on this, I'd be really grateful! It's the first time I'm working with Solaris, so I might have missed something obvious.


Cheers,

Martin
 
Old 08-09-2008, 06:20 PM   #2
martindp210
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy

Hello again,

I tried to track the problem down by removing any ambiguities about user IDs. I gave the same user ID (500) to a user with the same name on both machines.

This user has the same name, UID, GID and password on the Fedora and Solaris machines. He also owns the directory /usr/mydir and all its files on the Fedora host.

Nevertheless, I still can't access the mounted directory on the Solaris, no matter whether I am that user or root. Also, I still get the 'not owner' error when trying to mount the remote file system manually, although I am obviously the owner of both the remote directory and local mount point, with the same login name and UID.

Automount still seems to work, sort of. An interesting thing I observed is the fact that the mountpoint seems to change ownership upon mounting via automount. That is, if the remote directory is not mounted, the mountpoint looks like this in ls -l:

drwxrwxrwx 2 myuser mygroup 2 2008-08-09 hh:mm mymountpoint

and as soon as I mount it via automount it reads:

dr-xr-xr-x 1 root root 1 2008-08-09 hh:mm mymountpoint

If I then do cd or ls to mymountpoint I get 'Permission denied', both when I'm myuser or root. I'm quite confused by now, and any help would be much appreciated!


Cheers,

Martin
 
  


Reply

Tags
fedora, nfs, opensolaris, sharing, solaris


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting / via nfs ? hepburnenthorpe Linux - General 2 07-12-2006 10:47 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
nfs mounting vic Linux - Networking 4 11-19-2004 01:27 PM
NFS mounting RH 7.3 suchi Linux - Networking 0 11-18-2003 04:41 AM
nfs mounting chrismiceli Linux - Networking 1 06-07-2003 06:48 PM


All times are GMT -5. The time now is 03:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration