PAM USB on 14.04 su “username” = “no passwd entry for user 'Thornton'”












0















I followed the directions located here http://linuxconfig.org/linux-authentication-login-with-usb-device



Once I reached step 4 I found that the changed authorizations did nothing, so I reverted back, saved over it so I whent back to the end of step 3 and looked up other tutorials and found a video.... the video, which made a successful attempt, did not make any changes to the file. So, I tried login in with making no changes to the authorizations, no joy.



When I see them do su "username" they get this 5 line, 6 line explenation from terminal about their login status. I get a single line that says "no passwd entry for user 'Thornton'"



I dont know what I am doing wrong at this point. As stated in the title I am using the latest version of ubuntu and would like not to leave this half finished.



It still asks me for my writen password and my writen password still works.



Everything in the pictures proveded match up with my results up until this point, so they are not a good reference for understanding where the problem is.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I followed the directions located here http://linuxconfig.org/linux-authentication-login-with-usb-device



    Once I reached step 4 I found that the changed authorizations did nothing, so I reverted back, saved over it so I whent back to the end of step 3 and looked up other tutorials and found a video.... the video, which made a successful attempt, did not make any changes to the file. So, I tried login in with making no changes to the authorizations, no joy.



    When I see them do su "username" they get this 5 line, 6 line explenation from terminal about their login status. I get a single line that says "no passwd entry for user 'Thornton'"



    I dont know what I am doing wrong at this point. As stated in the title I am using the latest version of ubuntu and would like not to leave this half finished.



    It still asks me for my writen password and my writen password still works.



    Everything in the pictures proveded match up with my results up until this point, so they are not a good reference for understanding where the problem is.










    share|improve this question














    bumped to the homepage by Community yesterday


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I followed the directions located here http://linuxconfig.org/linux-authentication-login-with-usb-device



      Once I reached step 4 I found that the changed authorizations did nothing, so I reverted back, saved over it so I whent back to the end of step 3 and looked up other tutorials and found a video.... the video, which made a successful attempt, did not make any changes to the file. So, I tried login in with making no changes to the authorizations, no joy.



      When I see them do su "username" they get this 5 line, 6 line explenation from terminal about their login status. I get a single line that says "no passwd entry for user 'Thornton'"



      I dont know what I am doing wrong at this point. As stated in the title I am using the latest version of ubuntu and would like not to leave this half finished.



      It still asks me for my writen password and my writen password still works.



      Everything in the pictures proveded match up with my results up until this point, so they are not a good reference for understanding where the problem is.










      share|improve this question














      I followed the directions located here http://linuxconfig.org/linux-authentication-login-with-usb-device



      Once I reached step 4 I found that the changed authorizations did nothing, so I reverted back, saved over it so I whent back to the end of step 3 and looked up other tutorials and found a video.... the video, which made a successful attempt, did not make any changes to the file. So, I tried login in with making no changes to the authorizations, no joy.



      When I see them do su "username" they get this 5 line, 6 line explenation from terminal about their login status. I get a single line that says "no passwd entry for user 'Thornton'"



      I dont know what I am doing wrong at this point. As stated in the title I am using the latest version of ubuntu and would like not to leave this half finished.



      It still asks me for my writen password and my writen password still works.



      Everything in the pictures proveded match up with my results up until this point, so they are not a good reference for understanding where the problem is.







      usb 14.04 password pam su






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 6 '14 at 21:00









      user764323user764323

      112




      112





      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I am using this on 14.04 and it is working. Some things I have noticed:

          Only one usb device per username. Otherwise the error "no device found for user 'username'"



          I did not change the /etc/pam.d/common-auth file at all. "ie auth sufficient".



          Use $ pam-auth-update instead, unless you are adding events to detect when the usb device is plugged in or disconnected. Be warned, the $ pam-auth-update command will not work after you manually change the /etc/pam.d/common-auth file. You will need to manually manage it. pam-auth-update will force reverting to the default file if run in the future.



          Use the following command after plugging in the desired usb device. Change "MyDevice" to any one word you want. like MyDevice, Lexar32gb, Sandisk, etc.



          $ sudo pamusb-conf --add-device MyDevice
          Please select the device you wish to add.
          * Using "Verbatim STORE N GO (Verbatim_STORE_N_GO_07A10D0894492625-0:0)" (only option)

          Which volume would you like to use for storing data ?
          0) /dev/sdb2 (UUID: A842-0654)
          1) /dev/sdb1 (UUID: CAAF-0882)

          [0-1]: 0

          Name : MyDevice
          Vendor : Verbatim
          Model : STORE N GO
          Serial : Verbatim_STORE_N_GO_07A10D0894492625-0:0
          UUID : A842-0654

          Save to /etc/pamusb.conf ?
          [Y/n] Y
          Done.


          Use this command to add the user account you want linked to the device.



          $ sudo pamusb-conf --add-user username
          Which device would you like to use for authentication ?
          * Using "MyDevice" (only option)

          User : username
          Device : MyDevice

          Save to /etc/pamusb.conf ?
          [Y/n] y
          Done.


          After this, Test the functionality by:
          This is a successfull test.



          $ su username
          * pam_usb v0.5.0
          * Authentication request for user "username" (su)
          * Device "-MyDevice" is connected (good).
          * Performing one time pad verification...
          * Access granted.


          This is a fail.



          * pam_usb v0.5.0
          * Authentication request for user "username" (su)
          * Device "-MyDevice" is not connected.
          * Access denied.
          Password:


          If you get:



          * pam_usb v0.5.0
          * Authentication request for user "uername" (su)
          * Device "-MyDevice" is connected (good).
          * Performing one time pad verification...
          * pad verification failed (i think this is the error line)
          * Access denied.
          Password:


          Perform a



          $ rm ~/.pamusb/*


          This will erase the pad file, and running the



          $ su username


          will force a recreation of the pad file with the correct group and file permissions.



          Let me know if this helps.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f461951%2fpam-usb-on-14-04-su-username-no-passwd-entry-for-user-thornton%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









            0














            I am using this on 14.04 and it is working. Some things I have noticed:

            Only one usb device per username. Otherwise the error "no device found for user 'username'"



            I did not change the /etc/pam.d/common-auth file at all. "ie auth sufficient".



            Use $ pam-auth-update instead, unless you are adding events to detect when the usb device is plugged in or disconnected. Be warned, the $ pam-auth-update command will not work after you manually change the /etc/pam.d/common-auth file. You will need to manually manage it. pam-auth-update will force reverting to the default file if run in the future.



            Use the following command after plugging in the desired usb device. Change "MyDevice" to any one word you want. like MyDevice, Lexar32gb, Sandisk, etc.



            $ sudo pamusb-conf --add-device MyDevice
            Please select the device you wish to add.
            * Using "Verbatim STORE N GO (Verbatim_STORE_N_GO_07A10D0894492625-0:0)" (only option)

            Which volume would you like to use for storing data ?
            0) /dev/sdb2 (UUID: A842-0654)
            1) /dev/sdb1 (UUID: CAAF-0882)

            [0-1]: 0

            Name : MyDevice
            Vendor : Verbatim
            Model : STORE N GO
            Serial : Verbatim_STORE_N_GO_07A10D0894492625-0:0
            UUID : A842-0654

            Save to /etc/pamusb.conf ?
            [Y/n] Y
            Done.


            Use this command to add the user account you want linked to the device.



            $ sudo pamusb-conf --add-user username
            Which device would you like to use for authentication ?
            * Using "MyDevice" (only option)

            User : username
            Device : MyDevice

            Save to /etc/pamusb.conf ?
            [Y/n] y
            Done.


            After this, Test the functionality by:
            This is a successfull test.



            $ su username
            * pam_usb v0.5.0
            * Authentication request for user "username" (su)
            * Device "-MyDevice" is connected (good).
            * Performing one time pad verification...
            * Access granted.


            This is a fail.



            * pam_usb v0.5.0
            * Authentication request for user "username" (su)
            * Device "-MyDevice" is not connected.
            * Access denied.
            Password:


            If you get:



            * pam_usb v0.5.0
            * Authentication request for user "uername" (su)
            * Device "-MyDevice" is connected (good).
            * Performing one time pad verification...
            * pad verification failed (i think this is the error line)
            * Access denied.
            Password:


            Perform a



            $ rm ~/.pamusb/*


            This will erase the pad file, and running the



            $ su username


            will force a recreation of the pad file with the correct group and file permissions.



            Let me know if this helps.






            share|improve this answer






























              0














              I am using this on 14.04 and it is working. Some things I have noticed:

              Only one usb device per username. Otherwise the error "no device found for user 'username'"



              I did not change the /etc/pam.d/common-auth file at all. "ie auth sufficient".



              Use $ pam-auth-update instead, unless you are adding events to detect when the usb device is plugged in or disconnected. Be warned, the $ pam-auth-update command will not work after you manually change the /etc/pam.d/common-auth file. You will need to manually manage it. pam-auth-update will force reverting to the default file if run in the future.



              Use the following command after plugging in the desired usb device. Change "MyDevice" to any one word you want. like MyDevice, Lexar32gb, Sandisk, etc.



              $ sudo pamusb-conf --add-device MyDevice
              Please select the device you wish to add.
              * Using "Verbatim STORE N GO (Verbatim_STORE_N_GO_07A10D0894492625-0:0)" (only option)

              Which volume would you like to use for storing data ?
              0) /dev/sdb2 (UUID: A842-0654)
              1) /dev/sdb1 (UUID: CAAF-0882)

              [0-1]: 0

              Name : MyDevice
              Vendor : Verbatim
              Model : STORE N GO
              Serial : Verbatim_STORE_N_GO_07A10D0894492625-0:0
              UUID : A842-0654

              Save to /etc/pamusb.conf ?
              [Y/n] Y
              Done.


              Use this command to add the user account you want linked to the device.



              $ sudo pamusb-conf --add-user username
              Which device would you like to use for authentication ?
              * Using "MyDevice" (only option)

              User : username
              Device : MyDevice

              Save to /etc/pamusb.conf ?
              [Y/n] y
              Done.


              After this, Test the functionality by:
              This is a successfull test.



              $ su username
              * pam_usb v0.5.0
              * Authentication request for user "username" (su)
              * Device "-MyDevice" is connected (good).
              * Performing one time pad verification...
              * Access granted.


              This is a fail.



              * pam_usb v0.5.0
              * Authentication request for user "username" (su)
              * Device "-MyDevice" is not connected.
              * Access denied.
              Password:


              If you get:



              * pam_usb v0.5.0
              * Authentication request for user "uername" (su)
              * Device "-MyDevice" is connected (good).
              * Performing one time pad verification...
              * pad verification failed (i think this is the error line)
              * Access denied.
              Password:


              Perform a



              $ rm ~/.pamusb/*


              This will erase the pad file, and running the



              $ su username


              will force a recreation of the pad file with the correct group and file permissions.



              Let me know if this helps.






              share|improve this answer




























                0












                0








                0







                I am using this on 14.04 and it is working. Some things I have noticed:

                Only one usb device per username. Otherwise the error "no device found for user 'username'"



                I did not change the /etc/pam.d/common-auth file at all. "ie auth sufficient".



                Use $ pam-auth-update instead, unless you are adding events to detect when the usb device is plugged in or disconnected. Be warned, the $ pam-auth-update command will not work after you manually change the /etc/pam.d/common-auth file. You will need to manually manage it. pam-auth-update will force reverting to the default file if run in the future.



                Use the following command after plugging in the desired usb device. Change "MyDevice" to any one word you want. like MyDevice, Lexar32gb, Sandisk, etc.



                $ sudo pamusb-conf --add-device MyDevice
                Please select the device you wish to add.
                * Using "Verbatim STORE N GO (Verbatim_STORE_N_GO_07A10D0894492625-0:0)" (only option)

                Which volume would you like to use for storing data ?
                0) /dev/sdb2 (UUID: A842-0654)
                1) /dev/sdb1 (UUID: CAAF-0882)

                [0-1]: 0

                Name : MyDevice
                Vendor : Verbatim
                Model : STORE N GO
                Serial : Verbatim_STORE_N_GO_07A10D0894492625-0:0
                UUID : A842-0654

                Save to /etc/pamusb.conf ?
                [Y/n] Y
                Done.


                Use this command to add the user account you want linked to the device.



                $ sudo pamusb-conf --add-user username
                Which device would you like to use for authentication ?
                * Using "MyDevice" (only option)

                User : username
                Device : MyDevice

                Save to /etc/pamusb.conf ?
                [Y/n] y
                Done.


                After this, Test the functionality by:
                This is a successfull test.



                $ su username
                * pam_usb v0.5.0
                * Authentication request for user "username" (su)
                * Device "-MyDevice" is connected (good).
                * Performing one time pad verification...
                * Access granted.


                This is a fail.



                * pam_usb v0.5.0
                * Authentication request for user "username" (su)
                * Device "-MyDevice" is not connected.
                * Access denied.
                Password:


                If you get:



                * pam_usb v0.5.0
                * Authentication request for user "uername" (su)
                * Device "-MyDevice" is connected (good).
                * Performing one time pad verification...
                * pad verification failed (i think this is the error line)
                * Access denied.
                Password:


                Perform a



                $ rm ~/.pamusb/*


                This will erase the pad file, and running the



                $ su username


                will force a recreation of the pad file with the correct group and file permissions.



                Let me know if this helps.






                share|improve this answer















                I am using this on 14.04 and it is working. Some things I have noticed:

                Only one usb device per username. Otherwise the error "no device found for user 'username'"



                I did not change the /etc/pam.d/common-auth file at all. "ie auth sufficient".



                Use $ pam-auth-update instead, unless you are adding events to detect when the usb device is plugged in or disconnected. Be warned, the $ pam-auth-update command will not work after you manually change the /etc/pam.d/common-auth file. You will need to manually manage it. pam-auth-update will force reverting to the default file if run in the future.



                Use the following command after plugging in the desired usb device. Change "MyDevice" to any one word you want. like MyDevice, Lexar32gb, Sandisk, etc.



                $ sudo pamusb-conf --add-device MyDevice
                Please select the device you wish to add.
                * Using "Verbatim STORE N GO (Verbatim_STORE_N_GO_07A10D0894492625-0:0)" (only option)

                Which volume would you like to use for storing data ?
                0) /dev/sdb2 (UUID: A842-0654)
                1) /dev/sdb1 (UUID: CAAF-0882)

                [0-1]: 0

                Name : MyDevice
                Vendor : Verbatim
                Model : STORE N GO
                Serial : Verbatim_STORE_N_GO_07A10D0894492625-0:0
                UUID : A842-0654

                Save to /etc/pamusb.conf ?
                [Y/n] Y
                Done.


                Use this command to add the user account you want linked to the device.



                $ sudo pamusb-conf --add-user username
                Which device would you like to use for authentication ?
                * Using "MyDevice" (only option)

                User : username
                Device : MyDevice

                Save to /etc/pamusb.conf ?
                [Y/n] y
                Done.


                After this, Test the functionality by:
                This is a successfull test.



                $ su username
                * pam_usb v0.5.0
                * Authentication request for user "username" (su)
                * Device "-MyDevice" is connected (good).
                * Performing one time pad verification...
                * Access granted.


                This is a fail.



                * pam_usb v0.5.0
                * Authentication request for user "username" (su)
                * Device "-MyDevice" is not connected.
                * Access denied.
                Password:


                If you get:



                * pam_usb v0.5.0
                * Authentication request for user "uername" (su)
                * Device "-MyDevice" is connected (good).
                * Performing one time pad verification...
                * pad verification failed (i think this is the error line)
                * Access denied.
                Password:


                Perform a



                $ rm ~/.pamusb/*


                This will erase the pad file, and running the



                $ su username


                will force a recreation of the pad file with the correct group and file permissions.



                Let me know if this helps.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 28 '14 at 4:43

























                answered Sep 28 '14 at 1:59









                Rio BowenRio Bowen

                12




                12






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f461951%2fpam-usb-on-14-04-su-username-no-passwd-entry-for-user-thornton%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 did Captain America manage to do this?

                    迪纳利

                    南乌拉尔铁路局