auto login on xfce in jessie

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











up vote
7
down vote

favorite
2












I have started running Jessie (Debian 8) with a LightDM/Xfce desktop on my HTPC after it grinding to a near-halt on W7. One of the things that I cannot get past is having to type the password -- not a normal thing to do for watching TV.



Following the instructions on the Debian Wiki I got as far as my login being automatically selected. But this still requires the password, and half-fixes like empty / trivial passwords are not allowed.



Is it possible to go straight to the Xfce session without login/password?










share|improve this question



























    up vote
    7
    down vote

    favorite
    2












    I have started running Jessie (Debian 8) with a LightDM/Xfce desktop on my HTPC after it grinding to a near-halt on W7. One of the things that I cannot get past is having to type the password -- not a normal thing to do for watching TV.



    Following the instructions on the Debian Wiki I got as far as my login being automatically selected. But this still requires the password, and half-fixes like empty / trivial passwords are not allowed.



    Is it possible to go straight to the Xfce session without login/password?










    share|improve this question

























      up vote
      7
      down vote

      favorite
      2









      up vote
      7
      down vote

      favorite
      2






      2





      I have started running Jessie (Debian 8) with a LightDM/Xfce desktop on my HTPC after it grinding to a near-halt on W7. One of the things that I cannot get past is having to type the password -- not a normal thing to do for watching TV.



      Following the instructions on the Debian Wiki I got as far as my login being automatically selected. But this still requires the password, and half-fixes like empty / trivial passwords are not allowed.



      Is it possible to go straight to the Xfce session without login/password?










      share|improve this question















      I have started running Jessie (Debian 8) with a LightDM/Xfce desktop on my HTPC after it grinding to a near-halt on W7. One of the things that I cannot get past is having to type the password -- not a normal thing to do for watching TV.



      Following the instructions on the Debian Wiki I got as far as my login being automatically selected. But this still requires the password, and half-fixes like empty / trivial passwords are not allowed.



      Is it possible to go straight to the Xfce session without login/password?







      debian xfce lightdm autologin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 27 '17 at 12:07









      Stephen Kitt

      162k24360438




      162k24360438










      asked Aug 9 '16 at 21:19









      alle_meije

      166117




      166117




















          5 Answers
          5






          active

          oldest

          votes

















          up vote
          9
          down vote













          This page describes how to enable it.



          Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured:



          /etc/lightdm/lightdm.conf



          [Seat:*]
          pam-service=lightdm
          pam-autologin-service=lightdm-autologin
          autologin-user=username
          autologin-user-timeout=0
          session-wrapper=/etc/X11/Xsession
          greeter-session=lightdm-greeter


          LightDM goes through PAM even when autologin is enabled. You must be part of the autologin group to be able to login automatically without entering your password:



          # groupadd -r autologin
          # gpasswd -a username autologin





          share|improve this answer






















          • Thanks! The arch docs seem more complete than Debian's... Unfortunately the settings don't translate. I changed it so that lightdm --show-config gives greeter-session=lightdm-greeter and session-wrapper=/etc/X11/Xsession, the lines about pam and auto-login-user are the same. Without the greeter-session line X does not start. <br> I did the bit for the autologin group but still had to type my password. Then I did the bit for the nopasswdlogin group and then neither my password nor the root were accepted by lightdm??
            – alle_meije
            Aug 11 '16 at 19:49











          • ok, so, it does work in the end with some tweaking?
            – madeddie
            Aug 11 '16 at 19:50










          • no - the only tweaking I did was adding the other group as documented on the Arch wiki. But I had to remove that to get into X at all..
            – alle_meije
            Aug 11 '16 at 19:55










          • yeah, so those are 2 different things, the autologin group and the nopasswdlogin group, did you add yourself to the nopasswdlogin group before making the changes to PAM?
            – madeddie
            Aug 11 '16 at 19:59






          • 1




            i'm at a loss actually and sadly don't have an xfce system i can easily test on
            – madeddie
            Aug 11 '16 at 20:13

















          up vote
          5
          down vote













          here is the correct answer for Debian 9 Jessie, for all of you who need help the correct way.



          Add Auto Login to Debian



          First you need switch to the LightDM (Desktop Manager).




          1. Switch to LightDM**



            sudo dpkg-reconfigure lightdm



          2. Add the Autologin account**



            sudo groupadd -r autologin

            sudo gpasswd -a YOURUSERNAME autologin



          3. Edit the LightDM Config Files



            sudo leafpad /etc/lightdm/lightdm.conf


          Add all 3 of these lines below to the file and save it:



          [SeatDefaults]
          autologin-user=YOURUSERNAME
          autologin-user-timeout=0
          autologin-session=xfce


          Now, notice that above has XFCE as the session. If you use gnome, cinnamon, etc., make sure you specify what session (GUI) you use, otherwise above will log you into XFCE and you may not have it installed.



          If you don't know, type



          echo $DESKTOP_SESSION





          share|improve this answer






















          • Thanks! The only one that worked for me
            – Gus
            Apr 28 at 17:43

















          up vote
          1
          down vote



          accepted










          I solved it using the Debian wiki page and this page on LinuxServe -- especially the comment!



          when I do /usr/sbin/lightdm --show-config I get two files: /etc/lightdm/lightdm.conf and /usr/share/lightdm/lightdm.conf.d/01_debian.conf



          These I edited so that in /usr/share/lightdm/lightdm.conf.d/01_debian.conf it says:
          greeter-session=lightdm-greeter
          session-wrapper=/etc/X11/Xsession



          and in /etc/lightdm/lightdm.conf it says:
          autologin-user=username
          autologin-user-timeout=0



          The trick was that, as the comment at the end of the second link says, that the autologin settings need to be in the [SeatDefaults] section of the file. There are two places where the lines appear, commented, and I had uncommented the first place.



          It was a bit strange because in normal settings files for Debian, lines like these don't appear twice -- but I should have taken a better look!






          share|improve this answer






















          • That's a great answer. For Debian 9.0.3 'stretch', your instructions work perfectly for xcfe, and the values you show for 01_debian.conf are the default values, so all I needed to change was in lightdm.conf
            – clearlight
            Jan 28 at 21:28











          • NOTE: root user: If autologin-user=root, autologin will silently fail unless you also comment-out auth required pam_succeed_if.so user != root quiet_success in /etc/pam.d/lightdm-autologin
            – clearlight
            Jan 28 at 21:31


















          up vote
          1
          down vote













          Below worked for me. I was logged as root.



          1. Add user to autologin goup

          groupadd -r autologin
          gpasswd -a YOURUSERNAME autologin



          1. Edit config file ->
            /etc/lightdm/lightdm.conf
            Change part below [Seat:*] ->
            uncomment and fill data

          autologin-user=YOURUSERNAME
          autologin-user-timeout=0
          autologin-session=DESKTOP_SESSION



          2a. If you don't know session name
          echo $DESKTOP_SESSION






          share|improve this answer



























            up vote
            0
            down vote













            In Debian 9 with Xfce, all I had to do was add this to /etc/lightdm/lightdm.conf:



            [Seat:*]
            autologin-user=david


            Despite what the other answers say, my user does not need to be in the autologin group and I didn't need to do anything with PAM.






            share|improve this answer




















              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              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: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2funix.stackexchange.com%2fquestions%2f302400%2fauto-login-on-xfce-in-jessie%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              9
              down vote













              This page describes how to enable it.



              Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured:



              /etc/lightdm/lightdm.conf



              [Seat:*]
              pam-service=lightdm
              pam-autologin-service=lightdm-autologin
              autologin-user=username
              autologin-user-timeout=0
              session-wrapper=/etc/X11/Xsession
              greeter-session=lightdm-greeter


              LightDM goes through PAM even when autologin is enabled. You must be part of the autologin group to be able to login automatically without entering your password:



              # groupadd -r autologin
              # gpasswd -a username autologin





              share|improve this answer






















              • Thanks! The arch docs seem more complete than Debian's... Unfortunately the settings don't translate. I changed it so that lightdm --show-config gives greeter-session=lightdm-greeter and session-wrapper=/etc/X11/Xsession, the lines about pam and auto-login-user are the same. Without the greeter-session line X does not start. <br> I did the bit for the autologin group but still had to type my password. Then I did the bit for the nopasswdlogin group and then neither my password nor the root were accepted by lightdm??
                – alle_meije
                Aug 11 '16 at 19:49











              • ok, so, it does work in the end with some tweaking?
                – madeddie
                Aug 11 '16 at 19:50










              • no - the only tweaking I did was adding the other group as documented on the Arch wiki. But I had to remove that to get into X at all..
                – alle_meije
                Aug 11 '16 at 19:55










              • yeah, so those are 2 different things, the autologin group and the nopasswdlogin group, did you add yourself to the nopasswdlogin group before making the changes to PAM?
                – madeddie
                Aug 11 '16 at 19:59






              • 1




                i'm at a loss actually and sadly don't have an xfce system i can easily test on
                – madeddie
                Aug 11 '16 at 20:13














              up vote
              9
              down vote













              This page describes how to enable it.



              Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured:



              /etc/lightdm/lightdm.conf



              [Seat:*]
              pam-service=lightdm
              pam-autologin-service=lightdm-autologin
              autologin-user=username
              autologin-user-timeout=0
              session-wrapper=/etc/X11/Xsession
              greeter-session=lightdm-greeter


              LightDM goes through PAM even when autologin is enabled. You must be part of the autologin group to be able to login automatically without entering your password:



              # groupadd -r autologin
              # gpasswd -a username autologin





              share|improve this answer






















              • Thanks! The arch docs seem more complete than Debian's... Unfortunately the settings don't translate. I changed it so that lightdm --show-config gives greeter-session=lightdm-greeter and session-wrapper=/etc/X11/Xsession, the lines about pam and auto-login-user are the same. Without the greeter-session line X does not start. <br> I did the bit for the autologin group but still had to type my password. Then I did the bit for the nopasswdlogin group and then neither my password nor the root were accepted by lightdm??
                – alle_meije
                Aug 11 '16 at 19:49











              • ok, so, it does work in the end with some tweaking?
                – madeddie
                Aug 11 '16 at 19:50










              • no - the only tweaking I did was adding the other group as documented on the Arch wiki. But I had to remove that to get into X at all..
                – alle_meije
                Aug 11 '16 at 19:55










              • yeah, so those are 2 different things, the autologin group and the nopasswdlogin group, did you add yourself to the nopasswdlogin group before making the changes to PAM?
                – madeddie
                Aug 11 '16 at 19:59






              • 1




                i'm at a loss actually and sadly don't have an xfce system i can easily test on
                – madeddie
                Aug 11 '16 at 20:13












              up vote
              9
              down vote










              up vote
              9
              down vote









              This page describes how to enable it.



              Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured:



              /etc/lightdm/lightdm.conf



              [Seat:*]
              pam-service=lightdm
              pam-autologin-service=lightdm-autologin
              autologin-user=username
              autologin-user-timeout=0
              session-wrapper=/etc/X11/Xsession
              greeter-session=lightdm-greeter


              LightDM goes through PAM even when autologin is enabled. You must be part of the autologin group to be able to login automatically without entering your password:



              # groupadd -r autologin
              # gpasswd -a username autologin





              share|improve this answer














              This page describes how to enable it.



              Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured:



              /etc/lightdm/lightdm.conf



              [Seat:*]
              pam-service=lightdm
              pam-autologin-service=lightdm-autologin
              autologin-user=username
              autologin-user-timeout=0
              session-wrapper=/etc/X11/Xsession
              greeter-session=lightdm-greeter


              LightDM goes through PAM even when autologin is enabled. You must be part of the autologin group to be able to login automatically without entering your password:



              # groupadd -r autologin
              # gpasswd -a username autologin






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Aug 11 '16 at 19:56

























              answered Aug 10 '16 at 15:27









              madeddie

              49029




              49029











              • Thanks! The arch docs seem more complete than Debian's... Unfortunately the settings don't translate. I changed it so that lightdm --show-config gives greeter-session=lightdm-greeter and session-wrapper=/etc/X11/Xsession, the lines about pam and auto-login-user are the same. Without the greeter-session line X does not start. <br> I did the bit for the autologin group but still had to type my password. Then I did the bit for the nopasswdlogin group and then neither my password nor the root were accepted by lightdm??
                – alle_meije
                Aug 11 '16 at 19:49











              • ok, so, it does work in the end with some tweaking?
                – madeddie
                Aug 11 '16 at 19:50










              • no - the only tweaking I did was adding the other group as documented on the Arch wiki. But I had to remove that to get into X at all..
                – alle_meije
                Aug 11 '16 at 19:55










              • yeah, so those are 2 different things, the autologin group and the nopasswdlogin group, did you add yourself to the nopasswdlogin group before making the changes to PAM?
                – madeddie
                Aug 11 '16 at 19:59






              • 1




                i'm at a loss actually and sadly don't have an xfce system i can easily test on
                – madeddie
                Aug 11 '16 at 20:13
















              • Thanks! The arch docs seem more complete than Debian's... Unfortunately the settings don't translate. I changed it so that lightdm --show-config gives greeter-session=lightdm-greeter and session-wrapper=/etc/X11/Xsession, the lines about pam and auto-login-user are the same. Without the greeter-session line X does not start. <br> I did the bit for the autologin group but still had to type my password. Then I did the bit for the nopasswdlogin group and then neither my password nor the root were accepted by lightdm??
                – alle_meije
                Aug 11 '16 at 19:49











              • ok, so, it does work in the end with some tweaking?
                – madeddie
                Aug 11 '16 at 19:50










              • no - the only tweaking I did was adding the other group as documented on the Arch wiki. But I had to remove that to get into X at all..
                – alle_meije
                Aug 11 '16 at 19:55










              • yeah, so those are 2 different things, the autologin group and the nopasswdlogin group, did you add yourself to the nopasswdlogin group before making the changes to PAM?
                – madeddie
                Aug 11 '16 at 19:59






              • 1




                i'm at a loss actually and sadly don't have an xfce system i can easily test on
                – madeddie
                Aug 11 '16 at 20:13















              Thanks! The arch docs seem more complete than Debian's... Unfortunately the settings don't translate. I changed it so that lightdm --show-config gives greeter-session=lightdm-greeter and session-wrapper=/etc/X11/Xsession, the lines about pam and auto-login-user are the same. Without the greeter-session line X does not start. <br> I did the bit for the autologin group but still had to type my password. Then I did the bit for the nopasswdlogin group and then neither my password nor the root were accepted by lightdm??
              – alle_meije
              Aug 11 '16 at 19:49





              Thanks! The arch docs seem more complete than Debian's... Unfortunately the settings don't translate. I changed it so that lightdm --show-config gives greeter-session=lightdm-greeter and session-wrapper=/etc/X11/Xsession, the lines about pam and auto-login-user are the same. Without the greeter-session line X does not start. <br> I did the bit for the autologin group but still had to type my password. Then I did the bit for the nopasswdlogin group and then neither my password nor the root were accepted by lightdm??
              – alle_meije
              Aug 11 '16 at 19:49













              ok, so, it does work in the end with some tweaking?
              – madeddie
              Aug 11 '16 at 19:50




              ok, so, it does work in the end with some tweaking?
              – madeddie
              Aug 11 '16 at 19:50












              no - the only tweaking I did was adding the other group as documented on the Arch wiki. But I had to remove that to get into X at all..
              – alle_meije
              Aug 11 '16 at 19:55




              no - the only tweaking I did was adding the other group as documented on the Arch wiki. But I had to remove that to get into X at all..
              – alle_meije
              Aug 11 '16 at 19:55












              yeah, so those are 2 different things, the autologin group and the nopasswdlogin group, did you add yourself to the nopasswdlogin group before making the changes to PAM?
              – madeddie
              Aug 11 '16 at 19:59




              yeah, so those are 2 different things, the autologin group and the nopasswdlogin group, did you add yourself to the nopasswdlogin group before making the changes to PAM?
              – madeddie
              Aug 11 '16 at 19:59




              1




              1




              i'm at a loss actually and sadly don't have an xfce system i can easily test on
              – madeddie
              Aug 11 '16 at 20:13




              i'm at a loss actually and sadly don't have an xfce system i can easily test on
              – madeddie
              Aug 11 '16 at 20:13












              up vote
              5
              down vote













              here is the correct answer for Debian 9 Jessie, for all of you who need help the correct way.



              Add Auto Login to Debian



              First you need switch to the LightDM (Desktop Manager).




              1. Switch to LightDM**



                sudo dpkg-reconfigure lightdm



              2. Add the Autologin account**



                sudo groupadd -r autologin

                sudo gpasswd -a YOURUSERNAME autologin



              3. Edit the LightDM Config Files



                sudo leafpad /etc/lightdm/lightdm.conf


              Add all 3 of these lines below to the file and save it:



              [SeatDefaults]
              autologin-user=YOURUSERNAME
              autologin-user-timeout=0
              autologin-session=xfce


              Now, notice that above has XFCE as the session. If you use gnome, cinnamon, etc., make sure you specify what session (GUI) you use, otherwise above will log you into XFCE and you may not have it installed.



              If you don't know, type



              echo $DESKTOP_SESSION





              share|improve this answer






















              • Thanks! The only one that worked for me
                – Gus
                Apr 28 at 17:43














              up vote
              5
              down vote













              here is the correct answer for Debian 9 Jessie, for all of you who need help the correct way.



              Add Auto Login to Debian



              First you need switch to the LightDM (Desktop Manager).




              1. Switch to LightDM**



                sudo dpkg-reconfigure lightdm



              2. Add the Autologin account**



                sudo groupadd -r autologin

                sudo gpasswd -a YOURUSERNAME autologin



              3. Edit the LightDM Config Files



                sudo leafpad /etc/lightdm/lightdm.conf


              Add all 3 of these lines below to the file and save it:



              [SeatDefaults]
              autologin-user=YOURUSERNAME
              autologin-user-timeout=0
              autologin-session=xfce


              Now, notice that above has XFCE as the session. If you use gnome, cinnamon, etc., make sure you specify what session (GUI) you use, otherwise above will log you into XFCE and you may not have it installed.



              If you don't know, type



              echo $DESKTOP_SESSION





              share|improve this answer






















              • Thanks! The only one that worked for me
                – Gus
                Apr 28 at 17:43












              up vote
              5
              down vote










              up vote
              5
              down vote









              here is the correct answer for Debian 9 Jessie, for all of you who need help the correct way.



              Add Auto Login to Debian



              First you need switch to the LightDM (Desktop Manager).




              1. Switch to LightDM**



                sudo dpkg-reconfigure lightdm



              2. Add the Autologin account**



                sudo groupadd -r autologin

                sudo gpasswd -a YOURUSERNAME autologin



              3. Edit the LightDM Config Files



                sudo leafpad /etc/lightdm/lightdm.conf


              Add all 3 of these lines below to the file and save it:



              [SeatDefaults]
              autologin-user=YOURUSERNAME
              autologin-user-timeout=0
              autologin-session=xfce


              Now, notice that above has XFCE as the session. If you use gnome, cinnamon, etc., make sure you specify what session (GUI) you use, otherwise above will log you into XFCE and you may not have it installed.



              If you don't know, type



              echo $DESKTOP_SESSION





              share|improve this answer














              here is the correct answer for Debian 9 Jessie, for all of you who need help the correct way.



              Add Auto Login to Debian



              First you need switch to the LightDM (Desktop Manager).




              1. Switch to LightDM**



                sudo dpkg-reconfigure lightdm



              2. Add the Autologin account**



                sudo groupadd -r autologin

                sudo gpasswd -a YOURUSERNAME autologin



              3. Edit the LightDM Config Files



                sudo leafpad /etc/lightdm/lightdm.conf


              Add all 3 of these lines below to the file and save it:



              [SeatDefaults]
              autologin-user=YOURUSERNAME
              autologin-user-timeout=0
              autologin-session=xfce


              Now, notice that above has XFCE as the session. If you use gnome, cinnamon, etc., make sure you specify what session (GUI) you use, otherwise above will log you into XFCE and you may not have it installed.



              If you don't know, type



              echo $DESKTOP_SESSION






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Nov 28 '17 at 11:57









              Jeff Schaller

              38k1053123




              38k1053123










              answered Nov 28 '17 at 11:07









              sploit

              5111




              5111











              • Thanks! The only one that worked for me
                – Gus
                Apr 28 at 17:43
















              • Thanks! The only one that worked for me
                – Gus
                Apr 28 at 17:43















              Thanks! The only one that worked for me
              – Gus
              Apr 28 at 17:43




              Thanks! The only one that worked for me
              – Gus
              Apr 28 at 17:43










              up vote
              1
              down vote



              accepted










              I solved it using the Debian wiki page and this page on LinuxServe -- especially the comment!



              when I do /usr/sbin/lightdm --show-config I get two files: /etc/lightdm/lightdm.conf and /usr/share/lightdm/lightdm.conf.d/01_debian.conf



              These I edited so that in /usr/share/lightdm/lightdm.conf.d/01_debian.conf it says:
              greeter-session=lightdm-greeter
              session-wrapper=/etc/X11/Xsession



              and in /etc/lightdm/lightdm.conf it says:
              autologin-user=username
              autologin-user-timeout=0



              The trick was that, as the comment at the end of the second link says, that the autologin settings need to be in the [SeatDefaults] section of the file. There are two places where the lines appear, commented, and I had uncommented the first place.



              It was a bit strange because in normal settings files for Debian, lines like these don't appear twice -- but I should have taken a better look!






              share|improve this answer






















              • That's a great answer. For Debian 9.0.3 'stretch', your instructions work perfectly for xcfe, and the values you show for 01_debian.conf are the default values, so all I needed to change was in lightdm.conf
                – clearlight
                Jan 28 at 21:28











              • NOTE: root user: If autologin-user=root, autologin will silently fail unless you also comment-out auth required pam_succeed_if.so user != root quiet_success in /etc/pam.d/lightdm-autologin
                – clearlight
                Jan 28 at 21:31















              up vote
              1
              down vote



              accepted










              I solved it using the Debian wiki page and this page on LinuxServe -- especially the comment!



              when I do /usr/sbin/lightdm --show-config I get two files: /etc/lightdm/lightdm.conf and /usr/share/lightdm/lightdm.conf.d/01_debian.conf



              These I edited so that in /usr/share/lightdm/lightdm.conf.d/01_debian.conf it says:
              greeter-session=lightdm-greeter
              session-wrapper=/etc/X11/Xsession



              and in /etc/lightdm/lightdm.conf it says:
              autologin-user=username
              autologin-user-timeout=0



              The trick was that, as the comment at the end of the second link says, that the autologin settings need to be in the [SeatDefaults] section of the file. There are two places where the lines appear, commented, and I had uncommented the first place.



              It was a bit strange because in normal settings files for Debian, lines like these don't appear twice -- but I should have taken a better look!






              share|improve this answer






















              • That's a great answer. For Debian 9.0.3 'stretch', your instructions work perfectly for xcfe, and the values you show for 01_debian.conf are the default values, so all I needed to change was in lightdm.conf
                – clearlight
                Jan 28 at 21:28











              • NOTE: root user: If autologin-user=root, autologin will silently fail unless you also comment-out auth required pam_succeed_if.so user != root quiet_success in /etc/pam.d/lightdm-autologin
                – clearlight
                Jan 28 at 21:31













              up vote
              1
              down vote



              accepted







              up vote
              1
              down vote



              accepted






              I solved it using the Debian wiki page and this page on LinuxServe -- especially the comment!



              when I do /usr/sbin/lightdm --show-config I get two files: /etc/lightdm/lightdm.conf and /usr/share/lightdm/lightdm.conf.d/01_debian.conf



              These I edited so that in /usr/share/lightdm/lightdm.conf.d/01_debian.conf it says:
              greeter-session=lightdm-greeter
              session-wrapper=/etc/X11/Xsession



              and in /etc/lightdm/lightdm.conf it says:
              autologin-user=username
              autologin-user-timeout=0



              The trick was that, as the comment at the end of the second link says, that the autologin settings need to be in the [SeatDefaults] section of the file. There are two places where the lines appear, commented, and I had uncommented the first place.



              It was a bit strange because in normal settings files for Debian, lines like these don't appear twice -- but I should have taken a better look!






              share|improve this answer














              I solved it using the Debian wiki page and this page on LinuxServe -- especially the comment!



              when I do /usr/sbin/lightdm --show-config I get two files: /etc/lightdm/lightdm.conf and /usr/share/lightdm/lightdm.conf.d/01_debian.conf



              These I edited so that in /usr/share/lightdm/lightdm.conf.d/01_debian.conf it says:
              greeter-session=lightdm-greeter
              session-wrapper=/etc/X11/Xsession



              and in /etc/lightdm/lightdm.conf it says:
              autologin-user=username
              autologin-user-timeout=0



              The trick was that, as the comment at the end of the second link says, that the autologin settings need to be in the [SeatDefaults] section of the file. There are two places where the lines appear, commented, and I had uncommented the first place.



              It was a bit strange because in normal settings files for Debian, lines like these don't appear twice -- but I should have taken a better look!







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited May 11 '17 at 9:15

























              answered Aug 15 '16 at 10:03









              alle_meije

              166117




              166117











              • That's a great answer. For Debian 9.0.3 'stretch', your instructions work perfectly for xcfe, and the values you show for 01_debian.conf are the default values, so all I needed to change was in lightdm.conf
                – clearlight
                Jan 28 at 21:28











              • NOTE: root user: If autologin-user=root, autologin will silently fail unless you also comment-out auth required pam_succeed_if.so user != root quiet_success in /etc/pam.d/lightdm-autologin
                – clearlight
                Jan 28 at 21:31

















              • That's a great answer. For Debian 9.0.3 'stretch', your instructions work perfectly for xcfe, and the values you show for 01_debian.conf are the default values, so all I needed to change was in lightdm.conf
                – clearlight
                Jan 28 at 21:28











              • NOTE: root user: If autologin-user=root, autologin will silently fail unless you also comment-out auth required pam_succeed_if.so user != root quiet_success in /etc/pam.d/lightdm-autologin
                – clearlight
                Jan 28 at 21:31
















              That's a great answer. For Debian 9.0.3 'stretch', your instructions work perfectly for xcfe, and the values you show for 01_debian.conf are the default values, so all I needed to change was in lightdm.conf
              – clearlight
              Jan 28 at 21:28





              That's a great answer. For Debian 9.0.3 'stretch', your instructions work perfectly for xcfe, and the values you show for 01_debian.conf are the default values, so all I needed to change was in lightdm.conf
              – clearlight
              Jan 28 at 21:28













              NOTE: root user: If autologin-user=root, autologin will silently fail unless you also comment-out auth required pam_succeed_if.so user != root quiet_success in /etc/pam.d/lightdm-autologin
              – clearlight
              Jan 28 at 21:31





              NOTE: root user: If autologin-user=root, autologin will silently fail unless you also comment-out auth required pam_succeed_if.so user != root quiet_success in /etc/pam.d/lightdm-autologin
              – clearlight
              Jan 28 at 21:31











              up vote
              1
              down vote













              Below worked for me. I was logged as root.



              1. Add user to autologin goup

              groupadd -r autologin
              gpasswd -a YOURUSERNAME autologin



              1. Edit config file ->
                /etc/lightdm/lightdm.conf
                Change part below [Seat:*] ->
                uncomment and fill data

              autologin-user=YOURUSERNAME
              autologin-user-timeout=0
              autologin-session=DESKTOP_SESSION



              2a. If you don't know session name
              echo $DESKTOP_SESSION






              share|improve this answer
























                up vote
                1
                down vote













                Below worked for me. I was logged as root.



                1. Add user to autologin goup

                groupadd -r autologin
                gpasswd -a YOURUSERNAME autologin



                1. Edit config file ->
                  /etc/lightdm/lightdm.conf
                  Change part below [Seat:*] ->
                  uncomment and fill data

                autologin-user=YOURUSERNAME
                autologin-user-timeout=0
                autologin-session=DESKTOP_SESSION



                2a. If you don't know session name
                echo $DESKTOP_SESSION






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  Below worked for me. I was logged as root.



                  1. Add user to autologin goup

                  groupadd -r autologin
                  gpasswd -a YOURUSERNAME autologin



                  1. Edit config file ->
                    /etc/lightdm/lightdm.conf
                    Change part below [Seat:*] ->
                    uncomment and fill data

                  autologin-user=YOURUSERNAME
                  autologin-user-timeout=0
                  autologin-session=DESKTOP_SESSION



                  2a. If you don't know session name
                  echo $DESKTOP_SESSION






                  share|improve this answer












                  Below worked for me. I was logged as root.



                  1. Add user to autologin goup

                  groupadd -r autologin
                  gpasswd -a YOURUSERNAME autologin



                  1. Edit config file ->
                    /etc/lightdm/lightdm.conf
                    Change part below [Seat:*] ->
                    uncomment and fill data

                  autologin-user=YOURUSERNAME
                  autologin-user-timeout=0
                  autologin-session=DESKTOP_SESSION



                  2a. If you don't know session name
                  echo $DESKTOP_SESSION







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 24 '17 at 4:44









                  Marcin

                  111




                  111




















                      up vote
                      0
                      down vote













                      In Debian 9 with Xfce, all I had to do was add this to /etc/lightdm/lightdm.conf:



                      [Seat:*]
                      autologin-user=david


                      Despite what the other answers say, my user does not need to be in the autologin group and I didn't need to do anything with PAM.






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        In Debian 9 with Xfce, all I had to do was add this to /etc/lightdm/lightdm.conf:



                        [Seat:*]
                        autologin-user=david


                        Despite what the other answers say, my user does not need to be in the autologin group and I didn't need to do anything with PAM.






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          In Debian 9 with Xfce, all I had to do was add this to /etc/lightdm/lightdm.conf:



                          [Seat:*]
                          autologin-user=david


                          Despite what the other answers say, my user does not need to be in the autologin group and I didn't need to do anything with PAM.






                          share|improve this answer












                          In Debian 9 with Xfce, all I had to do was add this to /etc/lightdm/lightdm.conf:



                          [Seat:*]
                          autologin-user=david


                          Despite what the other answers say, my user does not need to be in the autologin group and I didn't need to do anything with PAM.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 8 at 5:45









                          David Grayson

                          1012




                          1012



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • 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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2funix.stackexchange.com%2fquestions%2f302400%2fauto-login-on-xfce-in-jessie%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown






                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay