What actually IS the functionality of the “lock user” function on Ubuntu Landscape?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I'm testing out Ubuntu Landscape, but the only client I have available to me is only accessible via SSH. I've tried locking the user on it as described in the documentation, but when that's finished I can still SSH into the user just fine. I noticed the sudo command doesn't work on the "locked" user, however.



My questions are, what is the scope on the Landscape user lock, what does it look like when a locked user tries to log in, and is there a way to make it so that the lock targets SSH as well besides simply disabling SSH?







share|improve this question
























    up vote
    0
    down vote

    favorite












    I'm testing out Ubuntu Landscape, but the only client I have available to me is only accessible via SSH. I've tried locking the user on it as described in the documentation, but when that's finished I can still SSH into the user just fine. I noticed the sudo command doesn't work on the "locked" user, however.



    My questions are, what is the scope on the Landscape user lock, what does it look like when a locked user tries to log in, and is there a way to make it so that the lock targets SSH as well besides simply disabling SSH?







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm testing out Ubuntu Landscape, but the only client I have available to me is only accessible via SSH. I've tried locking the user on it as described in the documentation, but when that's finished I can still SSH into the user just fine. I noticed the sudo command doesn't work on the "locked" user, however.



      My questions are, what is the scope on the Landscape user lock, what does it look like when a locked user tries to log in, and is there a way to make it so that the lock targets SSH as well besides simply disabling SSH?







      share|improve this question












      I'm testing out Ubuntu Landscape, but the only client I have available to me is only accessible via SSH. I've tried locking the user on it as described in the documentation, but when that's finished I can still SSH into the user just fine. I noticed the sudo command doesn't work on the "locked" user, however.



      My questions are, what is the scope on the Landscape user lock, what does it look like when a locked user tries to log in, and is there a way to make it so that the lock targets SSH as well besides simply disabling SSH?









      share|improve this question











      share|improve this question




      share|improve this question










      asked May 24 at 21:14









      DrChong

      32




      32




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          There is actually nothing specific to landscape there.



          In short, locked account are users for which the password entry starts with a "!", thus disabling password access (see man passwd on your system for more details). It generally doesn't look different from a failed password attempt.



          ssh may still allow key based authentication for locked users depending on its configuration. UsePAM yes is known to have that effect, and is enabled by default on Ubuntu.



          Here are a couple ways you can achieve user locking:



          • set UsePAM no in sshd_config

          • disable PubkeyAuthentication

          • not use locking mechanism but rather set expiration date on the user

          • set the shell of the user to /usr/sbin/nologin

          • there are probably other settings related to PAM you can use, but I'm not familiar enough with them





          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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f1039989%2fwhat-actually-is-the-functionality-of-the-lock-user-function-on-ubuntu-landsca%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            There is actually nothing specific to landscape there.



            In short, locked account are users for which the password entry starts with a "!", thus disabling password access (see man passwd on your system for more details). It generally doesn't look different from a failed password attempt.



            ssh may still allow key based authentication for locked users depending on its configuration. UsePAM yes is known to have that effect, and is enabled by default on Ubuntu.



            Here are a couple ways you can achieve user locking:



            • set UsePAM no in sshd_config

            • disable PubkeyAuthentication

            • not use locking mechanism but rather set expiration date on the user

            • set the shell of the user to /usr/sbin/nologin

            • there are probably other settings related to PAM you can use, but I'm not familiar enough with them





            share|improve this answer
























              up vote
              0
              down vote



              accepted










              There is actually nothing specific to landscape there.



              In short, locked account are users for which the password entry starts with a "!", thus disabling password access (see man passwd on your system for more details). It generally doesn't look different from a failed password attempt.



              ssh may still allow key based authentication for locked users depending on its configuration. UsePAM yes is known to have that effect, and is enabled by default on Ubuntu.



              Here are a couple ways you can achieve user locking:



              • set UsePAM no in sshd_config

              • disable PubkeyAuthentication

              • not use locking mechanism but rather set expiration date on the user

              • set the shell of the user to /usr/sbin/nologin

              • there are probably other settings related to PAM you can use, but I'm not familiar enough with them





              share|improve this answer






















                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                There is actually nothing specific to landscape there.



                In short, locked account are users for which the password entry starts with a "!", thus disabling password access (see man passwd on your system for more details). It generally doesn't look different from a failed password attempt.



                ssh may still allow key based authentication for locked users depending on its configuration. UsePAM yes is known to have that effect, and is enabled by default on Ubuntu.



                Here are a couple ways you can achieve user locking:



                • set UsePAM no in sshd_config

                • disable PubkeyAuthentication

                • not use locking mechanism but rather set expiration date on the user

                • set the shell of the user to /usr/sbin/nologin

                • there are probably other settings related to PAM you can use, but I'm not familiar enough with them





                share|improve this answer












                There is actually nothing specific to landscape there.



                In short, locked account are users for which the password entry starts with a "!", thus disabling password access (see man passwd on your system for more details). It generally doesn't look different from a failed password attempt.



                ssh may still allow key based authentication for locked users depending on its configuration. UsePAM yes is known to have that effect, and is enabled by default on Ubuntu.



                Here are a couple ways you can achieve user locking:



                • set UsePAM no in sshd_config

                • disable PubkeyAuthentication

                • not use locking mechanism but rather set expiration date on the user

                • set the shell of the user to /usr/sbin/nologin

                • there are probably other settings related to PAM you can use, but I'm not familiar enough with them






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 26 at 14:31









                simpoir

                1964




                1964






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039989%2fwhat-actually-is-the-functionality-of-the-lock-user-function-on-ubuntu-landsca%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Trouble downloading packages list due to a “Hash sum mismatch” error

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    How do I move numbers in filenames, in a batch renaming operation?