AIX

AIX

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

 View Only
  • 1.  Confused with the user/group relationship of NFS

    Posted Wed February 28, 2007 01:54 PM

    Originally posted by: SystemAdmin


    Kind of confused with the file attributes created in NFS directory.
    I created B:/remote/subdir in A. Then when I cd to /remote/subdir, I saw the user and the group attributes of the subdir is different to the original (user/group) as on B side. For Example, the user/group of B side is the oracle/oinstall, while in my A side, they all show acarball/sshd. Then if I created a file on A side in that /remote/subdir, the file attribute will be the current user scope, while on the B side, the same file attribute is 202/bsp.
    First, I did not know how the acarball/sshd was assigned.
    Secondly, why 202/bsp on remote side (B). Besides, I do not have the acarball user under my A side although there is a sshd group.
    Where can I find a good document to explain the relationship? Tried the mknfsmnt command, but nothing to explain there.


  • 2.  Re: Confused with the user/group relationship of NFS

    Posted Wed February 28, 2007 01:58 PM

    Originally posted by: SystemAdmin


    Thats because the names have nothing to do with the ownership. Files ownership are stored as the UID and GID not the names we like to use like oracle and etc. You will need to synch your UIDs and GIDs for the ownership names to follow with NFS.

    Lamar


  • 3.  Re: Confused with the user/group relationship of NFS

    Posted Wed February 28, 2007 06:50 PM

    Originally posted by: SystemAdmin


    Can U elaborate more on how to sync in UID? I used chnfsmnt to add -y option, not allow uid to write program. That´s all i know.


  • 4.  Re: Confused with the user/group relationship of NFS

    Posted Wed February 28, 2007 07:48 PM

    Originally posted by: orphy


    He's talking about the 3rd field in /etc/{password,group}. You should
    do more reading to understand the potential impacts before making any
    changes. Changing UIDs/GIDs in your case could render something else
    not working.

    http://inetsd01.boulder.ibm.com/pseries/hu_HU/files/aixfiles/passwd.htm
    http://inetsd01.boulder.ibm.com/pseries/hu_HU/files/aixfiles/group_security.htm

    Now, if you really know what you are doing, "smitty chuser" will let you
    change the UID. Just change the "User ID" field on BOTH boxes to have the
    same numeric number. You might want to sync up "Primary GROUP" and
    "Group SET" also. Use "smitty chgroup" for syncing the GID.

    That said, I would strongly suggest you start reading from here BEFORE making
    any changes.

    http://inetsd01.boulder.ibm.com/pseries/hu_HU/aixuser/usrosdev/file_own_user_grps.htm
    Orphy


  • 5.  Re: Confused with the user/group relationship of NFS

    Posted Thu March 01, 2007 09:34 AM

    Originally posted by: SystemAdmin


    Thanks again for your valuable suggestion. Because I have no idea about the sync and just learn to use the NFS, so I only applied what I learn from the IBM lib of those basic commands. Sure I will read those docs. Sometimes, I will ask the same questions on several forums to get different aspects from each group. I hope that you do not mind. Becuase member of other group return to me different opinion, like the one about the use of disk and in many other cases. Then I can make the best decision.