Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-28-2005, 01:16 PM
|
#1
|
Member
Registered: Apr 2005
Posts: 36
Rep:
|
NFS doubt ...
Hi,
I am running a Fedora Core I box (let's say F1B) and need to perform the following task:
There is a computer running Solaris 8, let's say S8S (Solaris 8 Server). On that server I have a directory which I want to import throgh NFS (let it be d). As you know, the owner of d is u and I only want to give write access to u (in the S8S)
I configured the shre file in the S8S but when I import d to F1B, I do not have write access, so what am I doing wrong? I searched and there is no way to tell the mount command to import the directory as a user on the remote server.
Thenks in advance,
Best regards,
Wilmer
|
|
|
11-28-2005, 05:20 PM
|
#2
|
Member
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384
Rep:
|
Hi,
first the read/write permissions must be set in hosts.allow as well (if you have RO in hosts.allow, you will have trouble mounting R/W...).
Then, nfs will preserve the directory tree ownerships and permissions, so your users must have the same UID (and GID) on both machines.
|
|
|
11-28-2005, 05:36 PM
|
#3
|
Member
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384
Rep:
|
First, is it safe to assume you specified the export as writable (rw) in your /etc/exports on the server?
Second, did you deal with the user ID issue? NFS mapps the numeric user IDs of the files on the server to the database of local users on the client. So, if user joeblow is UID 1001 on the server, but joeblow is UID 1003 on the client, then joeblow will not be able to write to his own files. The two ways I know how to deal with this are to make sure all users have the same UIDs on both boxes, or to use a map file, which you can read about in the man page for exports(5).
Edit:
Guess I typed too slow.
Last edited by AdaHacker; 11-28-2005 at 05:37 PM.
|
|
|
11-28-2005, 06:32 PM
|
#4
|
Member
Registered: Apr 2005
Posts: 36
Original Poster
Rep:
|
Thank you! Using the same uid and gid on both machines (server and client) it worked!
|
|
|
All times are GMT -5. The time now is 06:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|