LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-30-2013, 09:52 AM   #1
Voha
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Rep: Reputation: Disabled
NFS mapping NEW user - CentOS 6.4


Hi!

I'm (well, me too ) trying to map users from NFS client to server.

I add new user to server, like "useradd -r -u 10000 some_user", and also do the same on client. But it works only after I restart the client. Before restart client see NFS files belonging to nobody (99), after restart all works fine.

Any ideas? Actually it's users for running programs, so restart or even instance mount loose it's not solution... (anyway, umount and the mount doesn't help)

Thanks.
 
Old 10-30-2013, 11:20 AM   #2
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Probably you are using NFSv4 (as default for CentOS 6.x),
then it map unknown users to "nobody".
There is a deamon "idmapd" that map users, probaly restart or reload of it may help:
Code:
# /etc/init.d/rpcidmapd
Usage: /etc/init.d/rpcidmapd {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}
 
Old 10-30-2013, 11:24 AM   #3
Voha
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have tried this, doesn't help. ((
 
Old 10-31-2013, 03:48 AM   #4
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
NFS < v4 was talking UID/GID, when NFSv4 talking user/group, therefore some process to translate required. Probably, server's idmapd should be reloaded too.

As an ultimate solution, you can switch to NFSv3. Locate /etc/sysconfig/nfs file on server and disable v4. All clients should remount.
Code:
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
#RPCNFSDARGS=""
RPCNFSDARGS="--no-nfs-version 4"
 
Old 10-31-2013, 09:24 AM   #5
Voha
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by voleg View Post
Probably, server's idmapd should be reloaded too.
It doesn't help. What helps is just to disable rpcidmapd on server via chkconfig. Thus UIDs from server are passed to client as is. Probably it's not secure for open environment with live users, but I'm talking about close network.
 
  


Reply



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
[SOLVED] NFS mounts always as user nobody on Centos joachimjacob Linux - Server 7 10-10-2012 05:06 PM
NFS user mapping issues annareb Linux - Enterprise 1 03-20-2008 09:55 AM
NFS group mapping to linux joel112 *BSD 1 02-07-2005 06:09 PM
Mapping an NFS share not working mijohnst Linux - Networking 4 05-12-2004 01:14 PM
UID Mapping for NFS without NIS jgombos Linux - Networking 1 07-27-2003 06:52 PM

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

All times are GMT -5. The time now is 02:50 AM.

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