LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 07-25-2010, 09:12 AM   #1
afuerst
LQ Newbie
 
Registered: Dec 2006
Posts: 11

Rep: Reputation: 0
NFSv4 and idmapd working only in one direction


I tried to set up NFSv4 with idmapd between two Debian/lenny installations. On the client, the user "xyz" has the UID 501 and on the server "1000". Changing UIDs and setting up NIS is not possible, Kerberos unwanted. I tried to set up NFSv4 with idmapd and it is only working from server to client: When I list directories on the server, belonging to the user "xyz/1000", the owner is correctly displayed on the client as user "xyz/501". But when I create a file on the server, it is created with UID 501 (should be 1000). The configuration is quite standard, idmapd.conf was generated automatically, NEED_IDMAPD is set to "yes" and starting properly.
The main exporting directory has following options in /etc/exports:
rw,fsid=0,insecure,no_subtree_check,sync
and the mounted directory has:
rw,nohide,insecure,no_subtree_check,sync
For the mount-command, I specified "-t nfs4" as filesystem.

What might I be missing?

Tnx, Armin
 
Old 02-26-2011, 12:07 AM   #2
uselesslogin
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Any answer for this?

Quote:
Originally Posted by afuerst View Post
I tried to set up NFSv4 with idmapd between two Debian/lenny installations. On the client, the user "xyz" has the UID 501 and on the server "1000". Changing UIDs and setting up NIS is not possible, Kerberos unwanted. I tried to set up NFSv4 with idmapd and it is only working from server to client: When I list directories on the server, belonging to the user "xyz/1000", the owner is correctly displayed on the client as user "xyz/501". But when I create a file on the server, it is created with UID 501 (should be 1000). The configuration is quite standard, idmapd.conf was generated automatically, NEED_IDMAPD is set to "yes" and starting properly.
The main exporting directory has following options in /etc/exports:
rw,fsid=0,insecure,no_subtree_check,sync
and the mounted directory has:
rw,nohide,insecure,no_subtree_check,sync
For the mount-command, I specified "-t nfs4" as filesystem.

What might I be missing?

Tnx, Armin
I've run into this exact issue myself and I've found multiple people posting about it but no actual responses other than it works if you set up NIS, Kerberos, or LDAP. I guess it wasn't designed with the simple setup in mind. Anyway - is there anyone out there that knows if this is expected behavior and can offer an explanation?
 
  


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
Advantage of idmapd dhanju Linux - Server 2 07-27-2010 02:17 PM
nfsv4 not working with mit kerberos v5 linux 2 coglioni Linux - Newbie 7 06-22-2009 01:06 AM
Use of /etc/idmapd.conf ?? vikas027 Linux - Networking 1 11-01-2008 11:17 AM
Protocols (rsync, ssh, nfs, ipp) working only in one direction hroit Linux - General 8 08-23-2007 04:27 PM
Need help\direction getting orinoco card working $hep Linux - Wireless Networking 1 03-18-2005 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:54 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
Open Source Consulting | Domain Registration