• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 545
  • Last Modified:

NFS Client - nobody group

Hello,

I have a Linux server which is configured as a NFS server. I am using NFS4 to export /home to a client server. I am able to succesfully mount exported /home as /home_new on my client NFS server. But here is the Issue

ON NFS Server :
$ cd /home
$ ls -l |grep proftp
drwxrwx---  5 proftp                      proftp                      106496 May 11 07:21 proftp

ON NFS Client :
$ cd /home_new
$ ls -l |grep proftp
drwxrwx---  5 proftp                      nobody                      106496 May 11 07:21 proftp

I have all the directories groups exported as "nobody". This is only one of the directories but I have almost 70 of them. So what configurations changes I missed.

Also /etc/exports on my NFS Server are
# cat /etc/exports
/exports        *(rw,sync,insecure,root_squash,no_subtree_check,fsid=0)
/exports/home   *(rw,nohide,sync,insecure,no_root_squash,no_subtree_check)

Also I have the same /home exported as /home_new on another NFS client and I am able to see proper permissions. So there is something on this particular NFS client that needs to be tweeked

Thanks

0
mnis2008
Asked:
mnis2008
  • 2
1 Solution
 
jeremycrussellCommented:
Get the GIDs for proftp on the server and nobody on the client and they are likely the same number.

grep proftp /etc/group

Open in new window


Should end up with something like (your GID will vary)

nobody::60001:

I'm not real clear on the problem this is causing and what you are trying to get to...  on the client do you want the group for /home_new/proftp to read "proftp"?

0
 
farzanjCommented:
Could you show
cat /etc/idmapd.conf
0
 
mnis2008Author Commented:
# cat /etc/idmapd.conf
[General]

Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain

[Mapping]

Nobody-User = nobody
Nobody-Group = nobody

[Translation]
Method = nsswitch
0
 
farzanjCommented:
Make sure your mapping entries on the servers are identical to those of clients.

REF:
https://wiki.archlinux.org/index.php/NFSv4#Client_ID_mapping
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now