How do I enable auto-login in LightDM?












67















I want user foo to auto-login using LightDM (which has been used by Ubuntu since version 11.10). How would I do that?










share|improve this question




















  • 4





    FYI, If you are using home folder encryption, you can't enable auto login.

    – Saeid Zebardast
    Mar 30 '13 at 8:37
















67















I want user foo to auto-login using LightDM (which has been used by Ubuntu since version 11.10). How would I do that?










share|improve this question




















  • 4





    FYI, If you are using home folder encryption, you can't enable auto login.

    – Saeid Zebardast
    Mar 30 '13 at 8:37














67












67








67


10






I want user foo to auto-login using LightDM (which has been used by Ubuntu since version 11.10). How would I do that?










share|improve this question
















I want user foo to auto-login using LightDM (which has been used by Ubuntu since version 11.10). How would I do that?







configuration login lightdm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 '12 at 1:28









Jorge Castro

36.2k105422617




36.2k105422617










asked Jun 29 '11 at 9:51









htorquehtorque

47.1k32172212




47.1k32172212








  • 4





    FYI, If you are using home folder encryption, you can't enable auto login.

    – Saeid Zebardast
    Mar 30 '13 at 8:37














  • 4





    FYI, If you are using home folder encryption, you can't enable auto login.

    – Saeid Zebardast
    Mar 30 '13 at 8:37








4




4





FYI, If you are using home folder encryption, you can't enable auto login.

– Saeid Zebardast
Mar 30 '13 at 8:37





FYI, If you are using home folder encryption, you can't enable auto login.

– Saeid Zebardast
Mar 30 '13 at 8:37










12 Answers
12






active

oldest

votes


















45














You can do this without editing configuration files: go to System Settings > User accounts, click "Unlock" and enter your password, then click the button next to "Automatic login":



'enter image description here






share|improve this answer





















  • 3





    I'm working on Ubuntu 14.04. Here there is no option as "Automatic Login" as shown in your screen shot. Please say how to enable automatic login.

    – Ravi
    Sep 25 '14 at 6:48











  • @Ravi: the option is still there in Ubuntu 14.04 and 14.10. But there's an alternative answer below for enabling this from the lightdm.conf file.

    – Alin Andrei
    Sep 26 '14 at 11:40











  • @Ravi do you have home folder encryption on?

    – jcollum
    Jul 26 '17 at 14:28



















66














An alternative to Alin's answer is to create a file /etc/lightdm/lightdm.conf and add the following content:



[SeatDefaults]
autologin-user=<YOUR USER>
autologin-user-timeout=0
user-session=ubuntu
# Uncomment the following, if running Unity
#greeter-session=unity-greeter


Next time you start, auto-login should work like expected.






share|improve this answer





















  • 6





    Setting autologin-user to your user name is enough for autologin to work.

    – Smile4ever
    Oct 22 '14 at 16:47






  • 1





    On old versions there is a bug, if you set autologin-user-timeout=0 (or any other value to autologin-user-timeout), it's not working (LP#902852, debian#682473.

    – pevik
    Apr 23 '16 at 4:48











  • @Smile4ever for my setup (debian buster 4.18 + openbox) it didn't work without autologin-user-timeout=0.

    – Vorac
    Dec 15 '18 at 17:42





















19














For Ubuntu 14.04 create the file:



/etc/lightdm/lightdm.conf.d/12-autologin.conf


and add:



[SeatDefaults]
autologin-user=youruser





share|improve this answer


























  • I had to create this file and all it had was this and worked!

    – Peter
    Oct 20 '14 at 12:39






  • 1





    This worked for me on 64-bit Ubuntu MATE 18.04 LTS (Bionic), as of July 2018, when editing /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file like I did in 16.04 LTS, did no good.

    – ablaze
    Jul 7 '18 at 19:52





















15














You can easily do this with lightdm-set-defaults if you'd rather not edit lightdm.conf manually:



sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"


It will not set the autologin timeout, but the default for that is 0 in the code anyway, so you don't need to set it.






share|improve this answer


























  • Copy pasters: sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"

    – Ciro Santilli 新疆改造中心 六四事件 法轮功
    Feb 10 '14 at 7:34






  • 8





    This doesn't work in 14.04 LTS as lightdm-set-defaults was removed then so the other methods are better.

    – Robert Ancell
    Aug 22 '14 at 7:33



















7














gksu gedit /etc/lightdm/lightdm.conf


add lines:



autologin-user=username
autologin-user-timeout=0


example:



[SeatDefaults]

user-session=ubuntu

greeter-session=unity-greeter

autologin-user=alan

autologin-user-timeout=0





share|improve this answer

































    3














    Open settings, select 'user accounts'. Click the unlock button, then change the Automatic Login switch to "On"






    share|improve this answer



















    • 1





      Thank you Luyang Liu, but this optino is not displayed in User Accounts.

      – Agmenor
      Jan 17 '13 at 18:34



















    1














    Search for "User Accounts" application.
    Select the account you want to autologin
    Toggle the Automatic Login switch to On



    That should do the work.






    share|improve this answer































      1














      I can confirm that this works for 16.04.

      Using your favourite editor, amend /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf.

      Add autologin-user=xxxx to the file, for example:



      [Seat:*]
      greeter-session=lightdm-gtk-greeter
      autologin-user=wmurphy


      Remember to also set the Not asked to login option under Users and Groups.






      share|improve this answer

































        0














        I have 12.10 xubuntu.
        In users and groups choose your user, and click word "Change..." next to "Password:"
        (it does not look like a button, what might be a bit misleading).
        There you can change password, or at the bottom mark "Don't ask for password on login" box.



        Hope it works.






        share|improve this answer
























        • Thank you very much Chris. However, as explained in my question, this solution is not displayed in User Accounts.

          – Agmenor
          Jan 17 '13 at 18:34



















        0














        I just discovered that, I need to have ubuntu-desktop to be install before lightdm could function. This solved my issue when trying to get lightdm to actually login in without going in loop.



        The reason for the system to go in loop may be because lightdm needs the ubuntu desktop before it may work.



        sudo apt-get install ubuntu-desktop





        share|improve this answer
























        • This is absolutely wrong, since I'm using lightdm with openbox environment only

          – Patrizio Bertoni
          Sep 19 '17 at 14:54











        • Can you point to a link for how to do this? I had set lightdm.conf user-session=LXDE, then switched that to openbox as per /usr/share/xessions/openbox.desktop, but it keeps starting LXDE.

          – naasking
          Sep 4 '18 at 11:40



















        0














        I had the same problem, I solved it with the following steps:




        1. login as root: sudo su


        2. enter the file:



          sudo nano /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf



        3. at the bottom add:



          autologin-user=xxxx


        4. save the content of the file then exit and reboot.



        This should definitely work.






        share|improve this answer

































          0














          In Ubuntu 18.04 (Xubuntu Minimal Desktop), create /etc/lightdm/lightdm.conf and add the following:



          # /etc/lightdm/lightdm.conf
          [SeatDefaults]
          autologin-user=<username>
          autologin-user-timeout=0


          I couldn't get it working through the lightdm.conf.d folder.





          share























            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%2f51086%2fhow-do-i-enable-auto-login-in-lightdm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            12 Answers
            12






            active

            oldest

            votes








            12 Answers
            12






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            45














            You can do this without editing configuration files: go to System Settings > User accounts, click "Unlock" and enter your password, then click the button next to "Automatic login":



            'enter image description here






            share|improve this answer





















            • 3





              I'm working on Ubuntu 14.04. Here there is no option as "Automatic Login" as shown in your screen shot. Please say how to enable automatic login.

              – Ravi
              Sep 25 '14 at 6:48











            • @Ravi: the option is still there in Ubuntu 14.04 and 14.10. But there's an alternative answer below for enabling this from the lightdm.conf file.

              – Alin Andrei
              Sep 26 '14 at 11:40











            • @Ravi do you have home folder encryption on?

              – jcollum
              Jul 26 '17 at 14:28
















            45














            You can do this without editing configuration files: go to System Settings > User accounts, click "Unlock" and enter your password, then click the button next to "Automatic login":



            'enter image description here






            share|improve this answer





















            • 3





              I'm working on Ubuntu 14.04. Here there is no option as "Automatic Login" as shown in your screen shot. Please say how to enable automatic login.

              – Ravi
              Sep 25 '14 at 6:48











            • @Ravi: the option is still there in Ubuntu 14.04 and 14.10. But there's an alternative answer below for enabling this from the lightdm.conf file.

              – Alin Andrei
              Sep 26 '14 at 11:40











            • @Ravi do you have home folder encryption on?

              – jcollum
              Jul 26 '17 at 14:28














            45












            45








            45







            You can do this without editing configuration files: go to System Settings > User accounts, click "Unlock" and enter your password, then click the button next to "Automatic login":



            'enter image description here






            share|improve this answer















            You can do this without editing configuration files: go to System Settings > User accounts, click "Unlock" and enter your password, then click the button next to "Automatic login":



            'enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 5 '12 at 11:56









            Jorge Castro

            36.2k105422617




            36.2k105422617










            answered Sep 6 '11 at 15:14









            Alin AndreiAlin Andrei

            6,99433554




            6,99433554








            • 3





              I'm working on Ubuntu 14.04. Here there is no option as "Automatic Login" as shown in your screen shot. Please say how to enable automatic login.

              – Ravi
              Sep 25 '14 at 6:48











            • @Ravi: the option is still there in Ubuntu 14.04 and 14.10. But there's an alternative answer below for enabling this from the lightdm.conf file.

              – Alin Andrei
              Sep 26 '14 at 11:40











            • @Ravi do you have home folder encryption on?

              – jcollum
              Jul 26 '17 at 14:28














            • 3





              I'm working on Ubuntu 14.04. Here there is no option as "Automatic Login" as shown in your screen shot. Please say how to enable automatic login.

              – Ravi
              Sep 25 '14 at 6:48











            • @Ravi: the option is still there in Ubuntu 14.04 and 14.10. But there's an alternative answer below for enabling this from the lightdm.conf file.

              – Alin Andrei
              Sep 26 '14 at 11:40











            • @Ravi do you have home folder encryption on?

              – jcollum
              Jul 26 '17 at 14:28








            3




            3





            I'm working on Ubuntu 14.04. Here there is no option as "Automatic Login" as shown in your screen shot. Please say how to enable automatic login.

            – Ravi
            Sep 25 '14 at 6:48





            I'm working on Ubuntu 14.04. Here there is no option as "Automatic Login" as shown in your screen shot. Please say how to enable automatic login.

            – Ravi
            Sep 25 '14 at 6:48













            @Ravi: the option is still there in Ubuntu 14.04 and 14.10. But there's an alternative answer below for enabling this from the lightdm.conf file.

            – Alin Andrei
            Sep 26 '14 at 11:40





            @Ravi: the option is still there in Ubuntu 14.04 and 14.10. But there's an alternative answer below for enabling this from the lightdm.conf file.

            – Alin Andrei
            Sep 26 '14 at 11:40













            @Ravi do you have home folder encryption on?

            – jcollum
            Jul 26 '17 at 14:28





            @Ravi do you have home folder encryption on?

            – jcollum
            Jul 26 '17 at 14:28













            66














            An alternative to Alin's answer is to create a file /etc/lightdm/lightdm.conf and add the following content:



            [SeatDefaults]
            autologin-user=<YOUR USER>
            autologin-user-timeout=0
            user-session=ubuntu
            # Uncomment the following, if running Unity
            #greeter-session=unity-greeter


            Next time you start, auto-login should work like expected.






            share|improve this answer





















            • 6





              Setting autologin-user to your user name is enough for autologin to work.

              – Smile4ever
              Oct 22 '14 at 16:47






            • 1





              On old versions there is a bug, if you set autologin-user-timeout=0 (or any other value to autologin-user-timeout), it's not working (LP#902852, debian#682473.

              – pevik
              Apr 23 '16 at 4:48











            • @Smile4ever for my setup (debian buster 4.18 + openbox) it didn't work without autologin-user-timeout=0.

              – Vorac
              Dec 15 '18 at 17:42


















            66














            An alternative to Alin's answer is to create a file /etc/lightdm/lightdm.conf and add the following content:



            [SeatDefaults]
            autologin-user=<YOUR USER>
            autologin-user-timeout=0
            user-session=ubuntu
            # Uncomment the following, if running Unity
            #greeter-session=unity-greeter


            Next time you start, auto-login should work like expected.






            share|improve this answer





















            • 6





              Setting autologin-user to your user name is enough for autologin to work.

              – Smile4ever
              Oct 22 '14 at 16:47






            • 1





              On old versions there is a bug, if you set autologin-user-timeout=0 (or any other value to autologin-user-timeout), it's not working (LP#902852, debian#682473.

              – pevik
              Apr 23 '16 at 4:48











            • @Smile4ever for my setup (debian buster 4.18 + openbox) it didn't work without autologin-user-timeout=0.

              – Vorac
              Dec 15 '18 at 17:42
















            66












            66








            66







            An alternative to Alin's answer is to create a file /etc/lightdm/lightdm.conf and add the following content:



            [SeatDefaults]
            autologin-user=<YOUR USER>
            autologin-user-timeout=0
            user-session=ubuntu
            # Uncomment the following, if running Unity
            #greeter-session=unity-greeter


            Next time you start, auto-login should work like expected.






            share|improve this answer















            An alternative to Alin's answer is to create a file /etc/lightdm/lightdm.conf and add the following content:



            [SeatDefaults]
            autologin-user=<YOUR USER>
            autologin-user-timeout=0
            user-session=ubuntu
            # Uncomment the following, if running Unity
            #greeter-session=unity-greeter


            Next time you start, auto-login should work like expected.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 19 '17 at 12:02









            Patrizio Bertoni

            615




            615










            answered Jun 29 '11 at 9:51









            htorquehtorque

            47.1k32172212




            47.1k32172212








            • 6





              Setting autologin-user to your user name is enough for autologin to work.

              – Smile4ever
              Oct 22 '14 at 16:47






            • 1





              On old versions there is a bug, if you set autologin-user-timeout=0 (or any other value to autologin-user-timeout), it's not working (LP#902852, debian#682473.

              – pevik
              Apr 23 '16 at 4:48











            • @Smile4ever for my setup (debian buster 4.18 + openbox) it didn't work without autologin-user-timeout=0.

              – Vorac
              Dec 15 '18 at 17:42
















            • 6





              Setting autologin-user to your user name is enough for autologin to work.

              – Smile4ever
              Oct 22 '14 at 16:47






            • 1





              On old versions there is a bug, if you set autologin-user-timeout=0 (or any other value to autologin-user-timeout), it's not working (LP#902852, debian#682473.

              – pevik
              Apr 23 '16 at 4:48











            • @Smile4ever for my setup (debian buster 4.18 + openbox) it didn't work without autologin-user-timeout=0.

              – Vorac
              Dec 15 '18 at 17:42










            6




            6





            Setting autologin-user to your user name is enough for autologin to work.

            – Smile4ever
            Oct 22 '14 at 16:47





            Setting autologin-user to your user name is enough for autologin to work.

            – Smile4ever
            Oct 22 '14 at 16:47




            1




            1





            On old versions there is a bug, if you set autologin-user-timeout=0 (or any other value to autologin-user-timeout), it's not working (LP#902852, debian#682473.

            – pevik
            Apr 23 '16 at 4:48





            On old versions there is a bug, if you set autologin-user-timeout=0 (or any other value to autologin-user-timeout), it's not working (LP#902852, debian#682473.

            – pevik
            Apr 23 '16 at 4:48













            @Smile4ever for my setup (debian buster 4.18 + openbox) it didn't work without autologin-user-timeout=0.

            – Vorac
            Dec 15 '18 at 17:42







            @Smile4ever for my setup (debian buster 4.18 + openbox) it didn't work without autologin-user-timeout=0.

            – Vorac
            Dec 15 '18 at 17:42













            19














            For Ubuntu 14.04 create the file:



            /etc/lightdm/lightdm.conf.d/12-autologin.conf


            and add:



            [SeatDefaults]
            autologin-user=youruser





            share|improve this answer


























            • I had to create this file and all it had was this and worked!

              – Peter
              Oct 20 '14 at 12:39






            • 1





              This worked for me on 64-bit Ubuntu MATE 18.04 LTS (Bionic), as of July 2018, when editing /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file like I did in 16.04 LTS, did no good.

              – ablaze
              Jul 7 '18 at 19:52


















            19














            For Ubuntu 14.04 create the file:



            /etc/lightdm/lightdm.conf.d/12-autologin.conf


            and add:



            [SeatDefaults]
            autologin-user=youruser





            share|improve this answer


























            • I had to create this file and all it had was this and worked!

              – Peter
              Oct 20 '14 at 12:39






            • 1





              This worked for me on 64-bit Ubuntu MATE 18.04 LTS (Bionic), as of July 2018, when editing /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file like I did in 16.04 LTS, did no good.

              – ablaze
              Jul 7 '18 at 19:52
















            19












            19








            19







            For Ubuntu 14.04 create the file:



            /etc/lightdm/lightdm.conf.d/12-autologin.conf


            and add:



            [SeatDefaults]
            autologin-user=youruser





            share|improve this answer















            For Ubuntu 14.04 create the file:



            /etc/lightdm/lightdm.conf.d/12-autologin.conf


            and add:



            [SeatDefaults]
            autologin-user=youruser






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 28 '14 at 12:22

























            answered Apr 28 '14 at 12:02









            nkefnkef

            6911614




            6911614













            • I had to create this file and all it had was this and worked!

              – Peter
              Oct 20 '14 at 12:39






            • 1





              This worked for me on 64-bit Ubuntu MATE 18.04 LTS (Bionic), as of July 2018, when editing /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file like I did in 16.04 LTS, did no good.

              – ablaze
              Jul 7 '18 at 19:52





















            • I had to create this file and all it had was this and worked!

              – Peter
              Oct 20 '14 at 12:39






            • 1





              This worked for me on 64-bit Ubuntu MATE 18.04 LTS (Bionic), as of July 2018, when editing /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file like I did in 16.04 LTS, did no good.

              – ablaze
              Jul 7 '18 at 19:52



















            I had to create this file and all it had was this and worked!

            – Peter
            Oct 20 '14 at 12:39





            I had to create this file and all it had was this and worked!

            – Peter
            Oct 20 '14 at 12:39




            1




            1





            This worked for me on 64-bit Ubuntu MATE 18.04 LTS (Bionic), as of July 2018, when editing /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file like I did in 16.04 LTS, did no good.

            – ablaze
            Jul 7 '18 at 19:52







            This worked for me on 64-bit Ubuntu MATE 18.04 LTS (Bionic), as of July 2018, when editing /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file like I did in 16.04 LTS, did no good.

            – ablaze
            Jul 7 '18 at 19:52













            15














            You can easily do this with lightdm-set-defaults if you'd rather not edit lightdm.conf manually:



            sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"


            It will not set the autologin timeout, but the default for that is 0 in the code anyway, so you don't need to set it.






            share|improve this answer


























            • Copy pasters: sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"

              – Ciro Santilli 新疆改造中心 六四事件 法轮功
              Feb 10 '14 at 7:34






            • 8





              This doesn't work in 14.04 LTS as lightdm-set-defaults was removed then so the other methods are better.

              – Robert Ancell
              Aug 22 '14 at 7:33
















            15














            You can easily do this with lightdm-set-defaults if you'd rather not edit lightdm.conf manually:



            sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"


            It will not set the autologin timeout, but the default for that is 0 in the code anyway, so you don't need to set it.






            share|improve this answer


























            • Copy pasters: sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"

              – Ciro Santilli 新疆改造中心 六四事件 法轮功
              Feb 10 '14 at 7:34






            • 8





              This doesn't work in 14.04 LTS as lightdm-set-defaults was removed then so the other methods are better.

              – Robert Ancell
              Aug 22 '14 at 7:33














            15












            15








            15







            You can easily do this with lightdm-set-defaults if you'd rather not edit lightdm.conf manually:



            sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"


            It will not set the autologin timeout, but the default for that is 0 in the code anyway, so you don't need to set it.






            share|improve this answer















            You can easily do this with lightdm-set-defaults if you'd rather not edit lightdm.conf manually:



            sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"


            It will not set the autologin timeout, but the default for that is 0 in the code anyway, so you don't need to set it.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 26 '16 at 11:11









            David Foerster

            28k1365111




            28k1365111










            answered Dec 6 '12 at 19:49









            mfischmfisch

            2,67712138




            2,67712138













            • Copy pasters: sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"

              – Ciro Santilli 新疆改造中心 六四事件 法轮功
              Feb 10 '14 at 7:34






            • 8





              This doesn't work in 14.04 LTS as lightdm-set-defaults was removed then so the other methods are better.

              – Robert Ancell
              Aug 22 '14 at 7:33



















            • Copy pasters: sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"

              – Ciro Santilli 新疆改造中心 六四事件 法轮功
              Feb 10 '14 at 7:34






            • 8





              This doesn't work in 14.04 LTS as lightdm-set-defaults was removed then so the other methods are better.

              – Robert Ancell
              Aug 22 '14 at 7:33

















            Copy pasters: sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"

            – Ciro Santilli 新疆改造中心 六四事件 法轮功
            Feb 10 '14 at 7:34





            Copy pasters: sudo /usr/lib/lightdm/lightdm-set-defaults --autologin "$USER"

            – Ciro Santilli 新疆改造中心 六四事件 法轮功
            Feb 10 '14 at 7:34




            8




            8





            This doesn't work in 14.04 LTS as lightdm-set-defaults was removed then so the other methods are better.

            – Robert Ancell
            Aug 22 '14 at 7:33





            This doesn't work in 14.04 LTS as lightdm-set-defaults was removed then so the other methods are better.

            – Robert Ancell
            Aug 22 '14 at 7:33











            7














            gksu gedit /etc/lightdm/lightdm.conf


            add lines:



            autologin-user=username
            autologin-user-timeout=0


            example:



            [SeatDefaults]

            user-session=ubuntu

            greeter-session=unity-greeter

            autologin-user=alan

            autologin-user-timeout=0





            share|improve this answer






























              7














              gksu gedit /etc/lightdm/lightdm.conf


              add lines:



              autologin-user=username
              autologin-user-timeout=0


              example:



              [SeatDefaults]

              user-session=ubuntu

              greeter-session=unity-greeter

              autologin-user=alan

              autologin-user-timeout=0





              share|improve this answer




























                7












                7








                7







                gksu gedit /etc/lightdm/lightdm.conf


                add lines:



                autologin-user=username
                autologin-user-timeout=0


                example:



                [SeatDefaults]

                user-session=ubuntu

                greeter-session=unity-greeter

                autologin-user=alan

                autologin-user-timeout=0





                share|improve this answer















                gksu gedit /etc/lightdm/lightdm.conf


                add lines:



                autologin-user=username
                autologin-user-timeout=0


                example:



                [SeatDefaults]

                user-session=ubuntu

                greeter-session=unity-greeter

                autologin-user=alan

                autologin-user-timeout=0






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 25 '13 at 14:06









                Seth

                34.3k26110162




                34.3k26110162










                answered Mar 25 '13 at 13:46









                AlanAlan

                7111




                7111























                    3














                    Open settings, select 'user accounts'. Click the unlock button, then change the Automatic Login switch to "On"






                    share|improve this answer



















                    • 1





                      Thank you Luyang Liu, but this optino is not displayed in User Accounts.

                      – Agmenor
                      Jan 17 '13 at 18:34
















                    3














                    Open settings, select 'user accounts'. Click the unlock button, then change the Automatic Login switch to "On"






                    share|improve this answer



















                    • 1





                      Thank you Luyang Liu, but this optino is not displayed in User Accounts.

                      – Agmenor
                      Jan 17 '13 at 18:34














                    3












                    3








                    3







                    Open settings, select 'user accounts'. Click the unlock button, then change the Automatic Login switch to "On"






                    share|improve this answer













                    Open settings, select 'user accounts'. Click the unlock button, then change the Automatic Login switch to "On"







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 2 '12 at 6:09









                    luyangliuableluyangliuable

                    313




                    313








                    • 1





                      Thank you Luyang Liu, but this optino is not displayed in User Accounts.

                      – Agmenor
                      Jan 17 '13 at 18:34














                    • 1





                      Thank you Luyang Liu, but this optino is not displayed in User Accounts.

                      – Agmenor
                      Jan 17 '13 at 18:34








                    1




                    1





                    Thank you Luyang Liu, but this optino is not displayed in User Accounts.

                    – Agmenor
                    Jan 17 '13 at 18:34





                    Thank you Luyang Liu, but this optino is not displayed in User Accounts.

                    – Agmenor
                    Jan 17 '13 at 18:34











                    1














                    Search for "User Accounts" application.
                    Select the account you want to autologin
                    Toggle the Automatic Login switch to On



                    That should do the work.






                    share|improve this answer




























                      1














                      Search for "User Accounts" application.
                      Select the account you want to autologin
                      Toggle the Automatic Login switch to On



                      That should do the work.






                      share|improve this answer


























                        1












                        1








                        1







                        Search for "User Accounts" application.
                        Select the account you want to autologin
                        Toggle the Automatic Login switch to On



                        That should do the work.






                        share|improve this answer













                        Search for "User Accounts" application.
                        Select the account you want to autologin
                        Toggle the Automatic Login switch to On



                        That should do the work.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Oct 16 '11 at 19:01









                        FernandoFernando

                        33817




                        33817























                            1














                            I can confirm that this works for 16.04.

                            Using your favourite editor, amend /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf.

                            Add autologin-user=xxxx to the file, for example:



                            [Seat:*]
                            greeter-session=lightdm-gtk-greeter
                            autologin-user=wmurphy


                            Remember to also set the Not asked to login option under Users and Groups.






                            share|improve this answer






























                              1














                              I can confirm that this works for 16.04.

                              Using your favourite editor, amend /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf.

                              Add autologin-user=xxxx to the file, for example:



                              [Seat:*]
                              greeter-session=lightdm-gtk-greeter
                              autologin-user=wmurphy


                              Remember to also set the Not asked to login option under Users and Groups.






                              share|improve this answer




























                                1












                                1








                                1







                                I can confirm that this works for 16.04.

                                Using your favourite editor, amend /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf.

                                Add autologin-user=xxxx to the file, for example:



                                [Seat:*]
                                greeter-session=lightdm-gtk-greeter
                                autologin-user=wmurphy


                                Remember to also set the Not asked to login option under Users and Groups.






                                share|improve this answer















                                I can confirm that this works for 16.04.

                                Using your favourite editor, amend /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf.

                                Add autologin-user=xxxx to the file, for example:



                                [Seat:*]
                                greeter-session=lightdm-gtk-greeter
                                autologin-user=wmurphy


                                Remember to also set the Not asked to login option under Users and Groups.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Jun 3 '17 at 9:50









                                Zanna

                                50.6k13135241




                                50.6k13135241










                                answered Jun 3 '17 at 9:19









                                Wari MurphyWari Murphy

                                111




                                111























                                    0














                                    I have 12.10 xubuntu.
                                    In users and groups choose your user, and click word "Change..." next to "Password:"
                                    (it does not look like a button, what might be a bit misleading).
                                    There you can change password, or at the bottom mark "Don't ask for password on login" box.



                                    Hope it works.






                                    share|improve this answer
























                                    • Thank you very much Chris. However, as explained in my question, this solution is not displayed in User Accounts.

                                      – Agmenor
                                      Jan 17 '13 at 18:34
















                                    0














                                    I have 12.10 xubuntu.
                                    In users and groups choose your user, and click word "Change..." next to "Password:"
                                    (it does not look like a button, what might be a bit misleading).
                                    There you can change password, or at the bottom mark "Don't ask for password on login" box.



                                    Hope it works.






                                    share|improve this answer
























                                    • Thank you very much Chris. However, as explained in my question, this solution is not displayed in User Accounts.

                                      – Agmenor
                                      Jan 17 '13 at 18:34














                                    0












                                    0








                                    0







                                    I have 12.10 xubuntu.
                                    In users and groups choose your user, and click word "Change..." next to "Password:"
                                    (it does not look like a button, what might be a bit misleading).
                                    There you can change password, or at the bottom mark "Don't ask for password on login" box.



                                    Hope it works.






                                    share|improve this answer













                                    I have 12.10 xubuntu.
                                    In users and groups choose your user, and click word "Change..." next to "Password:"
                                    (it does not look like a button, what might be a bit misleading).
                                    There you can change password, or at the bottom mark "Don't ask for password on login" box.



                                    Hope it works.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jan 16 '13 at 14:37









                                    ChrisChris

                                    1




                                    1













                                    • Thank you very much Chris. However, as explained in my question, this solution is not displayed in User Accounts.

                                      – Agmenor
                                      Jan 17 '13 at 18:34



















                                    • Thank you very much Chris. However, as explained in my question, this solution is not displayed in User Accounts.

                                      – Agmenor
                                      Jan 17 '13 at 18:34

















                                    Thank you very much Chris. However, as explained in my question, this solution is not displayed in User Accounts.

                                    – Agmenor
                                    Jan 17 '13 at 18:34





                                    Thank you very much Chris. However, as explained in my question, this solution is not displayed in User Accounts.

                                    – Agmenor
                                    Jan 17 '13 at 18:34











                                    0














                                    I just discovered that, I need to have ubuntu-desktop to be install before lightdm could function. This solved my issue when trying to get lightdm to actually login in without going in loop.



                                    The reason for the system to go in loop may be because lightdm needs the ubuntu desktop before it may work.



                                    sudo apt-get install ubuntu-desktop





                                    share|improve this answer
























                                    • This is absolutely wrong, since I'm using lightdm with openbox environment only

                                      – Patrizio Bertoni
                                      Sep 19 '17 at 14:54











                                    • Can you point to a link for how to do this? I had set lightdm.conf user-session=LXDE, then switched that to openbox as per /usr/share/xessions/openbox.desktop, but it keeps starting LXDE.

                                      – naasking
                                      Sep 4 '18 at 11:40
















                                    0














                                    I just discovered that, I need to have ubuntu-desktop to be install before lightdm could function. This solved my issue when trying to get lightdm to actually login in without going in loop.



                                    The reason for the system to go in loop may be because lightdm needs the ubuntu desktop before it may work.



                                    sudo apt-get install ubuntu-desktop





                                    share|improve this answer
























                                    • This is absolutely wrong, since I'm using lightdm with openbox environment only

                                      – Patrizio Bertoni
                                      Sep 19 '17 at 14:54











                                    • Can you point to a link for how to do this? I had set lightdm.conf user-session=LXDE, then switched that to openbox as per /usr/share/xessions/openbox.desktop, but it keeps starting LXDE.

                                      – naasking
                                      Sep 4 '18 at 11:40














                                    0












                                    0








                                    0







                                    I just discovered that, I need to have ubuntu-desktop to be install before lightdm could function. This solved my issue when trying to get lightdm to actually login in without going in loop.



                                    The reason for the system to go in loop may be because lightdm needs the ubuntu desktop before it may work.



                                    sudo apt-get install ubuntu-desktop





                                    share|improve this answer













                                    I just discovered that, I need to have ubuntu-desktop to be install before lightdm could function. This solved my issue when trying to get lightdm to actually login in without going in loop.



                                    The reason for the system to go in loop may be because lightdm needs the ubuntu desktop before it may work.



                                    sudo apt-get install ubuntu-desktop






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jun 11 '13 at 23:11









                                    FaronFaron

                                    1,093914




                                    1,093914













                                    • This is absolutely wrong, since I'm using lightdm with openbox environment only

                                      – Patrizio Bertoni
                                      Sep 19 '17 at 14:54











                                    • Can you point to a link for how to do this? I had set lightdm.conf user-session=LXDE, then switched that to openbox as per /usr/share/xessions/openbox.desktop, but it keeps starting LXDE.

                                      – naasking
                                      Sep 4 '18 at 11:40



















                                    • This is absolutely wrong, since I'm using lightdm with openbox environment only

                                      – Patrizio Bertoni
                                      Sep 19 '17 at 14:54











                                    • Can you point to a link for how to do this? I had set lightdm.conf user-session=LXDE, then switched that to openbox as per /usr/share/xessions/openbox.desktop, but it keeps starting LXDE.

                                      – naasking
                                      Sep 4 '18 at 11:40

















                                    This is absolutely wrong, since I'm using lightdm with openbox environment only

                                    – Patrizio Bertoni
                                    Sep 19 '17 at 14:54





                                    This is absolutely wrong, since I'm using lightdm with openbox environment only

                                    – Patrizio Bertoni
                                    Sep 19 '17 at 14:54













                                    Can you point to a link for how to do this? I had set lightdm.conf user-session=LXDE, then switched that to openbox as per /usr/share/xessions/openbox.desktop, but it keeps starting LXDE.

                                    – naasking
                                    Sep 4 '18 at 11:40





                                    Can you point to a link for how to do this? I had set lightdm.conf user-session=LXDE, then switched that to openbox as per /usr/share/xessions/openbox.desktop, but it keeps starting LXDE.

                                    – naasking
                                    Sep 4 '18 at 11:40











                                    0














                                    I had the same problem, I solved it with the following steps:




                                    1. login as root: sudo su


                                    2. enter the file:



                                      sudo nano /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf



                                    3. at the bottom add:



                                      autologin-user=xxxx


                                    4. save the content of the file then exit and reboot.



                                    This should definitely work.






                                    share|improve this answer






























                                      0














                                      I had the same problem, I solved it with the following steps:




                                      1. login as root: sudo su


                                      2. enter the file:



                                        sudo nano /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf



                                      3. at the bottom add:



                                        autologin-user=xxxx


                                      4. save the content of the file then exit and reboot.



                                      This should definitely work.






                                      share|improve this answer




























                                        0












                                        0








                                        0







                                        I had the same problem, I solved it with the following steps:




                                        1. login as root: sudo su


                                        2. enter the file:



                                          sudo nano /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf



                                        3. at the bottom add:



                                          autologin-user=xxxx


                                        4. save the content of the file then exit and reboot.



                                        This should definitely work.






                                        share|improve this answer















                                        I had the same problem, I solved it with the following steps:




                                        1. login as root: sudo su


                                        2. enter the file:



                                          sudo nano /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf



                                        3. at the bottom add:



                                          autologin-user=xxxx


                                        4. save the content of the file then exit and reboot.



                                        This should definitely work.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Nov 20 '17 at 9:55









                                        Olorin

                                        2,131720




                                        2,131720










                                        answered Nov 20 '17 at 9:09









                                        SH ShaHadSH ShaHad

                                        62




                                        62























                                            0














                                            In Ubuntu 18.04 (Xubuntu Minimal Desktop), create /etc/lightdm/lightdm.conf and add the following:



                                            # /etc/lightdm/lightdm.conf
                                            [SeatDefaults]
                                            autologin-user=<username>
                                            autologin-user-timeout=0


                                            I couldn't get it working through the lightdm.conf.d folder.





                                            share




























                                              0














                                              In Ubuntu 18.04 (Xubuntu Minimal Desktop), create /etc/lightdm/lightdm.conf and add the following:



                                              # /etc/lightdm/lightdm.conf
                                              [SeatDefaults]
                                              autologin-user=<username>
                                              autologin-user-timeout=0


                                              I couldn't get it working through the lightdm.conf.d folder.





                                              share


























                                                0












                                                0








                                                0







                                                In Ubuntu 18.04 (Xubuntu Minimal Desktop), create /etc/lightdm/lightdm.conf and add the following:



                                                # /etc/lightdm/lightdm.conf
                                                [SeatDefaults]
                                                autologin-user=<username>
                                                autologin-user-timeout=0


                                                I couldn't get it working through the lightdm.conf.d folder.





                                                share













                                                In Ubuntu 18.04 (Xubuntu Minimal Desktop), create /etc/lightdm/lightdm.conf and add the following:



                                                # /etc/lightdm/lightdm.conf
                                                [SeatDefaults]
                                                autologin-user=<username>
                                                autologin-user-timeout=0


                                                I couldn't get it working through the lightdm.conf.d folder.






                                                share











                                                share


                                                share










                                                answered 7 mins ago









                                                JaakkoJaakko

                                                1013




                                                1013






























                                                    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%2f51086%2fhow-do-i-enable-auto-login-in-lightdm%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

                                                    GameSpot

                                                    日野市

                                                    Tu-95轟炸機