Automatic root login in Debian 8.0 (console only) The 2019 Stack Overflow Developer Survey...

Why couldn't they take pictures of a closer black hole?

How to support a colleague who finds meetings extremely tiring?

Are there any other methods to apply to solving simultaneous equations?

Is bread bad for ducks?

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

How to type this arrow in math mode?

Why can I use a list index as an indexing variable in a for loop?

How to quickly solve partial fractions equation?

A word that means fill it to the required quantity

How to translate "being like"?

What do I do when my TA workload is more than expected?

What is this business jet?

Loose spokes after only a few rides

Why is the maximum length of OpenWrt’s root password 8 characters?

Did any laptop computers have a built-in 5 1/4 inch floppy drive?

What is the meaning of Triage in Cybersec world?

Deal with toxic manager when you can't quit

Short story: child made less intelligent and less attractive

Likelihood that a superbug or lethal virus could come from a landfill

Match Roman Numerals

Does adding complexity mean a more secure cipher?

How to type a long/em dash `—`

What is the motivation for a law requiring 2 parties to consent for recording a conversation

Getting crown tickets for Statue of Liberty



Automatic root login in Debian 8.0 (console only)



The 2019 Stack Overflow Developer Survey Results Are InAutomatic root login in Debian 6.0 without GUI (xserver)How to setup a virtual machine in Ubuntu desktop to run Debian ServerAutomatic root login in Debian 6.0 without GUI (xserver)Best way to run autonomous process on Linux machineRunning xserver from console as normal user and gdm3 disabledInstalling different keyboard layout on live debian imageAuto-login straight into desktop on Debian 7 with LXDEvirtual box guest OS randomly freezes or crashes at login screenVMware Workstation 12 on Linux host - Transport (VMDB) error -45: Failed to connect to peer processNative Debian X32 Virtual Machine?Blender GPU rendering error on Linux





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







6















Is there any simple and straightforward way in which I can set my Debian 8.2 box to automatically login, at startup, with the root account on the console?



There is no GUI installed on the machine.



Following instructions from Automatic root login in Debian 6.0 without GUI (xserver) does not work (files don't exist, options are deprecated).










share|improve this question































    6















    Is there any simple and straightforward way in which I can set my Debian 8.2 box to automatically login, at startup, with the root account on the console?



    There is no GUI installed on the machine.



    Following instructions from Automatic root login in Debian 6.0 without GUI (xserver) does not work (files don't exist, options are deprecated).










    share|improve this question



























      6












      6








      6


      3






      Is there any simple and straightforward way in which I can set my Debian 8.2 box to automatically login, at startup, with the root account on the console?



      There is no GUI installed on the machine.



      Following instructions from Automatic root login in Debian 6.0 without GUI (xserver) does not work (files don't exist, options are deprecated).










      share|improve this question
















      Is there any simple and straightforward way in which I can set my Debian 8.2 box to automatically login, at startup, with the root account on the console?



      There is no GUI installed on the machine.



      Following instructions from Automatic root login in Debian 6.0 without GUI (xserver) does not work (files don't exist, options are deprecated).







      linux debian






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 '17 at 10:17









      Community

      1




      1










      asked Sep 8 '15 at 11:32









      GizmoGizmo

      83961449




      83961449






















          3 Answers
          3






          active

          oldest

          votes


















          13














          The file /etc/inittab is not used under systemd any longer. If you wanted, you could install systemv and you would find yourself a brand new inittab, but this would mean walking backward like crabs.



          You can instead edit the file /lib/systemd/system/getty@.service and change the line



            ExecStart=-/sbin/agetty --noclear %I $TERM


          to



            ExecStart=-/sbin/agetty --noclear -a root %I $TERM


          This just follows from the agetty manual page, which states, among other things:




          -a, --autologin username



          Log the specified user automatically in without asking for a login name and password. The -f username option is added to the /bin/login command line by default. The --login-options option changes this default behavior and then only u is replaced by the username and no other option is added to the login command
          line.




          To be sure, I just tested this on my Debian VM, and it works fine.






          share|improve this answer





















          • 1





            Was looking for inintab replacement on systemd, good answer!

            – Alfabravo
            Sep 8 '15 at 14:52



















          1














          DO NOT edit the units in /lib/systemd directly,
          since those are managed by installed packages,
          and would be overwritten during package upgrades.



          Instead, use $ sudo systemctl edit getty@.service to create a drop-in unit at /etc/systemd/system/getty@.service.d/override.conf with the following contents:



          [Service]
          ExecStart=
          ExecStart=-/sbin/agetty --noclear --autologin your_user_name %I $TERM


          It has the same effects as @MariusMatutiae's answer, but won't be touched during system upgrades.



          The first line selects the [Service] section to override.
          The second line explicitly clears the ExecStart entry -- otherwise the original ExecStart in /lib/systemd would still be effective, since multiple ExecStart directives are allowed in a single oneshot service unit.
          And the last line defines the new ExecStart command line, which is already explained in @MariusMatutiae's answer.



          Refer to the systemd.unit(5) manual pages for more details and examples.






          share|improve this answer

































            0














            You can edit the file /lib/systemd/system/getty@.service and change the line



            ExecStart=-/sbin/agetty --noclear %I $TERM



            to



            ExecStart=-/sbin/agetty --skip-login --login-options "-f root" %I 38400 linux



            for auto login as root user






            share|improve this answer



















            • 1





              I see you're new here, this question has already been answered and you just copied the answer..

              – Gizmo
              May 30 '18 at 10:03












            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f969923%2fautomatic-root-login-in-debian-8-0-console-only%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            13














            The file /etc/inittab is not used under systemd any longer. If you wanted, you could install systemv and you would find yourself a brand new inittab, but this would mean walking backward like crabs.



            You can instead edit the file /lib/systemd/system/getty@.service and change the line



              ExecStart=-/sbin/agetty --noclear %I $TERM


            to



              ExecStart=-/sbin/agetty --noclear -a root %I $TERM


            This just follows from the agetty manual page, which states, among other things:




            -a, --autologin username



            Log the specified user automatically in without asking for a login name and password. The -f username option is added to the /bin/login command line by default. The --login-options option changes this default behavior and then only u is replaced by the username and no other option is added to the login command
            line.




            To be sure, I just tested this on my Debian VM, and it works fine.






            share|improve this answer





















            • 1





              Was looking for inintab replacement on systemd, good answer!

              – Alfabravo
              Sep 8 '15 at 14:52
















            13














            The file /etc/inittab is not used under systemd any longer. If you wanted, you could install systemv and you would find yourself a brand new inittab, but this would mean walking backward like crabs.



            You can instead edit the file /lib/systemd/system/getty@.service and change the line



              ExecStart=-/sbin/agetty --noclear %I $TERM


            to



              ExecStart=-/sbin/agetty --noclear -a root %I $TERM


            This just follows from the agetty manual page, which states, among other things:




            -a, --autologin username



            Log the specified user automatically in without asking for a login name and password. The -f username option is added to the /bin/login command line by default. The --login-options option changes this default behavior and then only u is replaced by the username and no other option is added to the login command
            line.




            To be sure, I just tested this on my Debian VM, and it works fine.






            share|improve this answer





















            • 1





              Was looking for inintab replacement on systemd, good answer!

              – Alfabravo
              Sep 8 '15 at 14:52














            13












            13








            13







            The file /etc/inittab is not used under systemd any longer. If you wanted, you could install systemv and you would find yourself a brand new inittab, but this would mean walking backward like crabs.



            You can instead edit the file /lib/systemd/system/getty@.service and change the line



              ExecStart=-/sbin/agetty --noclear %I $TERM


            to



              ExecStart=-/sbin/agetty --noclear -a root %I $TERM


            This just follows from the agetty manual page, which states, among other things:




            -a, --autologin username



            Log the specified user automatically in without asking for a login name and password. The -f username option is added to the /bin/login command line by default. The --login-options option changes this default behavior and then only u is replaced by the username and no other option is added to the login command
            line.




            To be sure, I just tested this on my Debian VM, and it works fine.






            share|improve this answer















            The file /etc/inittab is not used under systemd any longer. If you wanted, you could install systemv and you would find yourself a brand new inittab, but this would mean walking backward like crabs.



            You can instead edit the file /lib/systemd/system/getty@.service and change the line



              ExecStart=-/sbin/agetty --noclear %I $TERM


            to



              ExecStart=-/sbin/agetty --noclear -a root %I $TERM


            This just follows from the agetty manual page, which states, among other things:




            -a, --autologin username



            Log the specified user automatically in without asking for a login name and password. The -f username option is added to the /bin/login command line by default. The --login-options option changes this default behavior and then only u is replaced by the username and no other option is added to the login command
            line.




            To be sure, I just tested this on my Debian VM, and it works fine.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 30 '18 at 5:57









            Kamil Maciorowski

            29.1k156288




            29.1k156288










            answered Sep 8 '15 at 14:42









            MariusMatutiaeMariusMatutiae

            39k954101




            39k954101








            • 1





              Was looking for inintab replacement on systemd, good answer!

              – Alfabravo
              Sep 8 '15 at 14:52














            • 1





              Was looking for inintab replacement on systemd, good answer!

              – Alfabravo
              Sep 8 '15 at 14:52








            1




            1





            Was looking for inintab replacement on systemd, good answer!

            – Alfabravo
            Sep 8 '15 at 14:52





            Was looking for inintab replacement on systemd, good answer!

            – Alfabravo
            Sep 8 '15 at 14:52













            1














            DO NOT edit the units in /lib/systemd directly,
            since those are managed by installed packages,
            and would be overwritten during package upgrades.



            Instead, use $ sudo systemctl edit getty@.service to create a drop-in unit at /etc/systemd/system/getty@.service.d/override.conf with the following contents:



            [Service]
            ExecStart=
            ExecStart=-/sbin/agetty --noclear --autologin your_user_name %I $TERM


            It has the same effects as @MariusMatutiae's answer, but won't be touched during system upgrades.



            The first line selects the [Service] section to override.
            The second line explicitly clears the ExecStart entry -- otherwise the original ExecStart in /lib/systemd would still be effective, since multiple ExecStart directives are allowed in a single oneshot service unit.
            And the last line defines the new ExecStart command line, which is already explained in @MariusMatutiae's answer.



            Refer to the systemd.unit(5) manual pages for more details and examples.






            share|improve this answer






























              1














              DO NOT edit the units in /lib/systemd directly,
              since those are managed by installed packages,
              and would be overwritten during package upgrades.



              Instead, use $ sudo systemctl edit getty@.service to create a drop-in unit at /etc/systemd/system/getty@.service.d/override.conf with the following contents:



              [Service]
              ExecStart=
              ExecStart=-/sbin/agetty --noclear --autologin your_user_name %I $TERM


              It has the same effects as @MariusMatutiae's answer, but won't be touched during system upgrades.



              The first line selects the [Service] section to override.
              The second line explicitly clears the ExecStart entry -- otherwise the original ExecStart in /lib/systemd would still be effective, since multiple ExecStart directives are allowed in a single oneshot service unit.
              And the last line defines the new ExecStart command line, which is already explained in @MariusMatutiae's answer.



              Refer to the systemd.unit(5) manual pages for more details and examples.






              share|improve this answer




























                1












                1








                1







                DO NOT edit the units in /lib/systemd directly,
                since those are managed by installed packages,
                and would be overwritten during package upgrades.



                Instead, use $ sudo systemctl edit getty@.service to create a drop-in unit at /etc/systemd/system/getty@.service.d/override.conf with the following contents:



                [Service]
                ExecStart=
                ExecStart=-/sbin/agetty --noclear --autologin your_user_name %I $TERM


                It has the same effects as @MariusMatutiae's answer, but won't be touched during system upgrades.



                The first line selects the [Service] section to override.
                The second line explicitly clears the ExecStart entry -- otherwise the original ExecStart in /lib/systemd would still be effective, since multiple ExecStart directives are allowed in a single oneshot service unit.
                And the last line defines the new ExecStart command line, which is already explained in @MariusMatutiae's answer.



                Refer to the systemd.unit(5) manual pages for more details and examples.






                share|improve this answer















                DO NOT edit the units in /lib/systemd directly,
                since those are managed by installed packages,
                and would be overwritten during package upgrades.



                Instead, use $ sudo systemctl edit getty@.service to create a drop-in unit at /etc/systemd/system/getty@.service.d/override.conf with the following contents:



                [Service]
                ExecStart=
                ExecStart=-/sbin/agetty --noclear --autologin your_user_name %I $TERM


                It has the same effects as @MariusMatutiae's answer, but won't be touched during system upgrades.



                The first line selects the [Service] section to override.
                The second line explicitly clears the ExecStart entry -- otherwise the original ExecStart in /lib/systemd would still be effective, since multiple ExecStart directives are allowed in a single oneshot service unit.
                And the last line defines the new ExecStart command line, which is already explained in @MariusMatutiae's answer.



                Refer to the systemd.unit(5) manual pages for more details and examples.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited yesterday

























                answered yesterday









                Arnie97Arnie97

                22316




                22316























                    0














                    You can edit the file /lib/systemd/system/getty@.service and change the line



                    ExecStart=-/sbin/agetty --noclear %I $TERM



                    to



                    ExecStart=-/sbin/agetty --skip-login --login-options "-f root" %I 38400 linux



                    for auto login as root user






                    share|improve this answer



















                    • 1





                      I see you're new here, this question has already been answered and you just copied the answer..

                      – Gizmo
                      May 30 '18 at 10:03
















                    0














                    You can edit the file /lib/systemd/system/getty@.service and change the line



                    ExecStart=-/sbin/agetty --noclear %I $TERM



                    to



                    ExecStart=-/sbin/agetty --skip-login --login-options "-f root" %I 38400 linux



                    for auto login as root user






                    share|improve this answer



















                    • 1





                      I see you're new here, this question has already been answered and you just copied the answer..

                      – Gizmo
                      May 30 '18 at 10:03














                    0












                    0








                    0







                    You can edit the file /lib/systemd/system/getty@.service and change the line



                    ExecStart=-/sbin/agetty --noclear %I $TERM



                    to



                    ExecStart=-/sbin/agetty --skip-login --login-options "-f root" %I 38400 linux



                    for auto login as root user






                    share|improve this answer













                    You can edit the file /lib/systemd/system/getty@.service and change the line



                    ExecStart=-/sbin/agetty --noclear %I $TERM



                    to



                    ExecStart=-/sbin/agetty --skip-login --login-options "-f root" %I 38400 linux



                    for auto login as root user







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 30 '18 at 5:52









                    Nathan SRNathan SR

                    1




                    1








                    • 1





                      I see you're new here, this question has already been answered and you just copied the answer..

                      – Gizmo
                      May 30 '18 at 10:03














                    • 1





                      I see you're new here, this question has already been answered and you just copied the answer..

                      – Gizmo
                      May 30 '18 at 10:03








                    1




                    1





                    I see you're new here, this question has already been answered and you just copied the answer..

                    – Gizmo
                    May 30 '18 at 10:03





                    I see you're new here, this question has already been answered and you just copied the answer..

                    – Gizmo
                    May 30 '18 at 10:03


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f969923%2fautomatic-root-login-in-debian-8-0-console-only%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

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                    Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

                    looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...