What exactly does nfs4_disable_idmapping parameter do?nfs4 id->user client-side not workingNFSv4 - ACLs not workingNFSv4 file ownerships, nfsidmap name not found in domainWhy can't I chown to nobody over nfsv4?NFSv4 permissions on AIXDoes “Kerberised” NFSv4 securely protect against a malicious client spoofing the userCreating a NFS share across servers with varying UIDsNFS4 ID MappingNFS nobody issueNFS user mapping where user is AD authenticated, but NFS server user local accounts

how to check a propriety using r studio

I'm flying to France today and my passport expires in less than 2 months

Java Casting: Java 11 throws LambdaConversionException while 1.8 does not

Can I ask the recruiters in my resume to put the reason why I am rejected?

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

Why does Kotter return in Welcome Back Kotter?

NMaximize is not converging to a solution

Can I make popcorn with any corn?

Maximum likelihood parameters deviate from posterior distributions

Mortgage Pre-approval / Loan - Apply Alone or with Fiancée?

Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?

How can bays and straits be determined in a procedurally generated map?

Can a vampire attack twice with their claws using Multiattack?

A case of the sniffles

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

High voltage LED indicator 40-1000 VDC without additional power supply

Can a Cauchy sequence converge for one metric while not converging for another?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

"You are your self first supporter", a more proper way to say it

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

meaning of に in 本当に?

Is it possible to do 50 km distance without any previous training?

Which country benefited the most from UN Security Council vetoes?

How to regain access to running applications after accidentally zapping X.org?



What exactly does nfs4_disable_idmapping parameter do?


nfs4 id->user client-side not workingNFSv4 - ACLs not workingNFSv4 file ownerships, nfsidmap name not found in domainWhy can't I chown to nobody over nfsv4?NFSv4 permissions on AIXDoes “Kerberised” NFSv4 securely protect against a malicious client spoofing the userCreating a NFS share across servers with varying UIDsNFS4 ID MappingNFS nobody issueNFS user mapping where user is AD authenticated, but NFS server user local accounts






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I've been experimenting with user/group ID mapping (translation) in NFSv4. What I want to achieve is name based ID translation, that is independent of the actual UID/GID on the server and clients.



Many guides and articles mention that to have ID mapping working you have to set nfs4_disable_idmapping parameter to 0 (aka N) in the nfs module on client, and nfsd module on the server. However, I didn't find any information or documentation about what exactly this parameter does.



As an experiment, I configured NFSv4 server and client (with sec=krb5) and I deliberately left these parameters at their default value (mapping disabled).
I can verify that the mapping is disabled on server:



$ cat /sys/module/nfsd/parameters/nfs4_disable_idmapping 
Y


and on the client:



$ cat /sys/module/nfs/parameters/nfs4_disable_idmapping 
Y


I created users bob(uid=1002) and sam(uid=1001) on the server, and users bob(uid=1003) and sam(uid=1004) on the client. As you can see, the UIDs do not match, however, the users are still mapped correctly. File created by the bob user on the is seen as owned by bob on the server, and vice versa.



Moreover, if I look at the logs on the client:



nfsidmap[1874]: key: 0x322c739a type: uid value: bob@home.lan timeout 600 
nfsidmap[1874]: nfs4_name_to_uid: calling nsswitch->name_to_uid
nfsidmap[1874]: nss_getpwnam: name 'bob@home.lan' domain 'home.lan': resulting localname 'bob'
nfsidmap[1874]: nfs4_name_to_uid: nsswitch->name_to_uid returned 0
nfsidmap[1874]: nfs4_name_to_uid: final return value is 0


and on the server:



rpc.idmapd[1717]: nfsdcb: authbuf=gss/krb5p authtype=user 
rpc.idmapd[1717]: nfs4_uid_to_name: calling nsswitch->uid_to_name
rpc.idmapd[1717]: nfs4_uid_to_name: nsswitch->uid_to_name returned 0
rpc.idmapd[1717]: nfs4_uid_to_name: final return value is 0
rpc.idmapd[1717]: Server : (user) id "1002" -> name "bob@home.lan"


they both suggest that ID mapping is indeed working "by name" rather then "by id".



So my question is: what is nfs4_disable_idmapping parameter for then, if it seems not to have any observable effect on the ID mapping?










share|improve this question




























    1















    I've been experimenting with user/group ID mapping (translation) in NFSv4. What I want to achieve is name based ID translation, that is independent of the actual UID/GID on the server and clients.



    Many guides and articles mention that to have ID mapping working you have to set nfs4_disable_idmapping parameter to 0 (aka N) in the nfs module on client, and nfsd module on the server. However, I didn't find any information or documentation about what exactly this parameter does.



    As an experiment, I configured NFSv4 server and client (with sec=krb5) and I deliberately left these parameters at their default value (mapping disabled).
    I can verify that the mapping is disabled on server:



    $ cat /sys/module/nfsd/parameters/nfs4_disable_idmapping 
    Y


    and on the client:



    $ cat /sys/module/nfs/parameters/nfs4_disable_idmapping 
    Y


    I created users bob(uid=1002) and sam(uid=1001) on the server, and users bob(uid=1003) and sam(uid=1004) on the client. As you can see, the UIDs do not match, however, the users are still mapped correctly. File created by the bob user on the is seen as owned by bob on the server, and vice versa.



    Moreover, if I look at the logs on the client:



    nfsidmap[1874]: key: 0x322c739a type: uid value: bob@home.lan timeout 600 
    nfsidmap[1874]: nfs4_name_to_uid: calling nsswitch->name_to_uid
    nfsidmap[1874]: nss_getpwnam: name 'bob@home.lan' domain 'home.lan': resulting localname 'bob'
    nfsidmap[1874]: nfs4_name_to_uid: nsswitch->name_to_uid returned 0
    nfsidmap[1874]: nfs4_name_to_uid: final return value is 0


    and on the server:



    rpc.idmapd[1717]: nfsdcb: authbuf=gss/krb5p authtype=user 
    rpc.idmapd[1717]: nfs4_uid_to_name: calling nsswitch->uid_to_name
    rpc.idmapd[1717]: nfs4_uid_to_name: nsswitch->uid_to_name returned 0
    rpc.idmapd[1717]: nfs4_uid_to_name: final return value is 0
    rpc.idmapd[1717]: Server : (user) id "1002" -> name "bob@home.lan"


    they both suggest that ID mapping is indeed working "by name" rather then "by id".



    So my question is: what is nfs4_disable_idmapping parameter for then, if it seems not to have any observable effect on the ID mapping?










    share|improve this question
























      1












      1








      1








      I've been experimenting with user/group ID mapping (translation) in NFSv4. What I want to achieve is name based ID translation, that is independent of the actual UID/GID on the server and clients.



      Many guides and articles mention that to have ID mapping working you have to set nfs4_disable_idmapping parameter to 0 (aka N) in the nfs module on client, and nfsd module on the server. However, I didn't find any information or documentation about what exactly this parameter does.



      As an experiment, I configured NFSv4 server and client (with sec=krb5) and I deliberately left these parameters at their default value (mapping disabled).
      I can verify that the mapping is disabled on server:



      $ cat /sys/module/nfsd/parameters/nfs4_disable_idmapping 
      Y


      and on the client:



      $ cat /sys/module/nfs/parameters/nfs4_disable_idmapping 
      Y


      I created users bob(uid=1002) and sam(uid=1001) on the server, and users bob(uid=1003) and sam(uid=1004) on the client. As you can see, the UIDs do not match, however, the users are still mapped correctly. File created by the bob user on the is seen as owned by bob on the server, and vice versa.



      Moreover, if I look at the logs on the client:



      nfsidmap[1874]: key: 0x322c739a type: uid value: bob@home.lan timeout 600 
      nfsidmap[1874]: nfs4_name_to_uid: calling nsswitch->name_to_uid
      nfsidmap[1874]: nss_getpwnam: name 'bob@home.lan' domain 'home.lan': resulting localname 'bob'
      nfsidmap[1874]: nfs4_name_to_uid: nsswitch->name_to_uid returned 0
      nfsidmap[1874]: nfs4_name_to_uid: final return value is 0


      and on the server:



      rpc.idmapd[1717]: nfsdcb: authbuf=gss/krb5p authtype=user 
      rpc.idmapd[1717]: nfs4_uid_to_name: calling nsswitch->uid_to_name
      rpc.idmapd[1717]: nfs4_uid_to_name: nsswitch->uid_to_name returned 0
      rpc.idmapd[1717]: nfs4_uid_to_name: final return value is 0
      rpc.idmapd[1717]: Server : (user) id "1002" -> name "bob@home.lan"


      they both suggest that ID mapping is indeed working "by name" rather then "by id".



      So my question is: what is nfs4_disable_idmapping parameter for then, if it seems not to have any observable effect on the ID mapping?










      share|improve this question














      I've been experimenting with user/group ID mapping (translation) in NFSv4. What I want to achieve is name based ID translation, that is independent of the actual UID/GID on the server and clients.



      Many guides and articles mention that to have ID mapping working you have to set nfs4_disable_idmapping parameter to 0 (aka N) in the nfs module on client, and nfsd module on the server. However, I didn't find any information or documentation about what exactly this parameter does.



      As an experiment, I configured NFSv4 server and client (with sec=krb5) and I deliberately left these parameters at their default value (mapping disabled).
      I can verify that the mapping is disabled on server:



      $ cat /sys/module/nfsd/parameters/nfs4_disable_idmapping 
      Y


      and on the client:



      $ cat /sys/module/nfs/parameters/nfs4_disable_idmapping 
      Y


      I created users bob(uid=1002) and sam(uid=1001) on the server, and users bob(uid=1003) and sam(uid=1004) on the client. As you can see, the UIDs do not match, however, the users are still mapped correctly. File created by the bob user on the is seen as owned by bob on the server, and vice versa.



      Moreover, if I look at the logs on the client:



      nfsidmap[1874]: key: 0x322c739a type: uid value: bob@home.lan timeout 600 
      nfsidmap[1874]: nfs4_name_to_uid: calling nsswitch->name_to_uid
      nfsidmap[1874]: nss_getpwnam: name 'bob@home.lan' domain 'home.lan': resulting localname 'bob'
      nfsidmap[1874]: nfs4_name_to_uid: nsswitch->name_to_uid returned 0
      nfsidmap[1874]: nfs4_name_to_uid: final return value is 0


      and on the server:



      rpc.idmapd[1717]: nfsdcb: authbuf=gss/krb5p authtype=user 
      rpc.idmapd[1717]: nfs4_uid_to_name: calling nsswitch->uid_to_name
      rpc.idmapd[1717]: nfs4_uid_to_name: nsswitch->uid_to_name returned 0
      rpc.idmapd[1717]: nfs4_uid_to_name: final return value is 0
      rpc.idmapd[1717]: Server : (user) id "1002" -> name "bob@home.lan"


      they both suggest that ID mapping is indeed working "by name" rather then "by id".



      So my question is: what is nfs4_disable_idmapping parameter for then, if it seems not to have any observable effect on the ID mapping?







      ubuntu nfs nfs4






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 18 at 3:11









      OlegOleg

      1083




      1083




















          1 Answer
          1






          active

          oldest

          votes


















          2














          You hit a bad test case. According to kernel documentation nfs4_disable_idmapping option makes sense only when sec=sys is used.






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f949642%2fwhat-exactly-does-nfs4-disable-idmapping-parameter-do%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            You hit a bad test case. According to kernel documentation nfs4_disable_idmapping option makes sense only when sec=sys is used.






            share|improve this answer



























              2














              You hit a bad test case. According to kernel documentation nfs4_disable_idmapping option makes sense only when sec=sys is used.






              share|improve this answer

























                2












                2








                2







                You hit a bad test case. According to kernel documentation nfs4_disable_idmapping option makes sense only when sec=sys is used.






                share|improve this answer













                You hit a bad test case. According to kernel documentation nfs4_disable_idmapping option makes sense only when sec=sys is used.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 2 at 19:57









                kofemannkofemann

                2,2141320




                2,2141320



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f949642%2fwhat-exactly-does-nfs4-disable-idmapping-parameter-do%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                    What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

                    Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?