AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  nfs mount point ownership got changed, please help

    Posted Mon May 09, 2011 03:33 PM

    Originally posted by: haiyan


    Hi experts,

    I am having a issue to share a folder from server1 to server2. Here is what happened -

    on server1 (AIX 5.3):
    1. create a jsf2 file system, /data
    1.1 also chown to user1:grp1
    2. add it to /etc/exports
    3. exportfs -va
    4. start nfs (mknfs -B)

    on server2 (AIX 5.3):
    1. showmount -v server1 #see the shared dir on server1
    2. mkdir /data
    2.1 chown -R user1:grp1
    3 mount server1:/data /data
    4.after /data is mounted, the ownership is changed to user0:grp0, instead of user1:grp1

    Can anyone out there gived me a hint, what is wrong?

    Thanks a lot!


  • 2.  Re: nfs mount point ownership got changed, please help

    Posted Mon May 09, 2011 03:46 PM

    Originally posted by: orphy


    Make sure the numeric UID & GID on both servers match. Either look at /etc/passwd & /etc/group or run "lsuser -a id user1" & lsgroup -a id grp1".
    Orphy


  • 3.  Re: nfs mount point ownership got changed, please help

    Posted Mon May 09, 2011 04:02 PM

    Originally posted by: haiyan


    Hi Orphy,
    Thank you so much for your prompt reply! The UID and GID were both different on my two servers. so the only solution I guess is to update UID and GID on either server1 or server2, right? Then just how this situation can be avoided?

    With best regards.