<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LS1012A Cannot login automatically as root in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992604#M5123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to&amp;nbsp;login automatically as root after the&amp;nbsp;system boot and&amp;nbsp;no password required! I've tried&amp;nbsp;modify “/lib/systemd/system/getty@.service”&amp;nbsp;content&amp;nbsp;as follows：&lt;/P&gt;&lt;P&gt;annotate "#ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM"&lt;/P&gt;&lt;P&gt;and add "ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM" or "ExecStart=-/sbin/agetty -a root --noclear %I $TERM",but it didn't work!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;S&lt;SPAN style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;econd:&lt;SPAN style="color: #3d3d3d; font-size: 15px;"&gt;modify "/etc/passwd",change "&lt;SPAN style="color: rgba(90, 90, 90, 0.933333); font-size: 18px;"&gt;root:x:0:0:root:/root:/bin/bash&lt;/SPAN&gt;"&amp;nbsp;to&amp;nbsp;"&lt;SPAN style="color: rgba(90, 90, 90, 0.933333); font-size: 18px;"&gt;root::0:0:root:/root:/bin/bash&lt;/SPAN&gt;".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f9f9f9; color: #3d3d3d; font-size: 15px; "&gt;&amp;nbsp; &amp;nbsp; Now&amp;nbsp;I don't need to enter a password,but&amp;nbsp;still need to enter a user name "root".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Why doesn't it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Startup information：&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;[ OK ] Started Permit User Sessions.&lt;BR /&gt;[ OK ] Started vsftpd FTP server.&lt;BR /&gt;[ OK ] Started Serial Getty on ttyS0.&lt;BR /&gt; Starting Set console scheme...&lt;BR /&gt;[ OK ] Started Ubuntu FAN network setup.&lt;BR /&gt;[ OK ] Started Set console scheme.&lt;BR /&gt;[ OK ] Created slice system-getty.slice.&lt;BR /&gt;[ OK ] Started Getty on tty1.&lt;BR /&gt;[ OK ] Reached target Login Prompts.&lt;BR /&gt;[ OK ] Started LSB: HPA's tftp server.&lt;BR /&gt;[ OK ] Started OpenBSD Secure Shell server.&lt;BR /&gt;[ OK ] Started LSB: network benchmark.&lt;BR /&gt;[ OK ] Started Lighttpd Daemon.&lt;BR /&gt;[ OK ] Started LXC network bridge setup.&lt;BR /&gt; Starting LXC Container Initialization and Autoboot Code...&lt;BR /&gt;[ OK ] Started LXC Container Initialization and Autoboot Code.&lt;BR /&gt;[ OK ] Started Samba NMB Daemon.&lt;BR /&gt; Starting Samba SMB Daemon...&lt;BR /&gt;[ OK ] Started Virtualization daemon.&lt;/P&gt;&lt;P&gt;Ubuntu 18.04.1 LTS localhost ttyS0&lt;/P&gt;&lt;P&gt;localhost login: root&lt;BR /&gt;Last login: Sun Jan 28 15:58:27 UTC 2018 on tty1&lt;BR /&gt;Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.14.47 aarch64)&lt;/P&gt;&lt;P&gt;* Documentation: &lt;A href="https://help.ubuntu.com" target="test_blank"&gt;https://help.ubuntu.com&lt;/A&gt;&lt;BR /&gt; * Management: &lt;A href="https://landscape.canonical.com" target="test_blank"&gt;https://landscape.canonical.com&lt;/A&gt;&lt;BR /&gt; * Support: &lt;A href="https://ubuntu.com/advantage" target="test_blank"&gt;https://ubuntu.com/advantage&lt;/A&gt;&lt;/P&gt;&lt;P&gt;root@localhost:~#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Nov 2019 03:29:59 GMT</pubDate>
    <dc:creator>lyh20218</dc:creator>
    <dc:date>2019-11-15T03:29:59Z</dc:date>
    <item>
      <title>LS1012A Cannot login automatically as root</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992604#M5123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to&amp;nbsp;login automatically as root after the&amp;nbsp;system boot and&amp;nbsp;no password required! I've tried&amp;nbsp;modify “/lib/systemd/system/getty@.service”&amp;nbsp;content&amp;nbsp;as follows：&lt;/P&gt;&lt;P&gt;annotate "#ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM"&lt;/P&gt;&lt;P&gt;and add "ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM" or "ExecStart=-/sbin/agetty -a root --noclear %I $TERM",but it didn't work!&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;S&lt;SPAN style="color: #333333; background-color: #f9f9f9; font-size: 14px;"&gt;econd:&lt;SPAN style="color: #3d3d3d; font-size: 15px;"&gt;modify "/etc/passwd",change "&lt;SPAN style="color: rgba(90, 90, 90, 0.933333); font-size: 18px;"&gt;root:x:0:0:root:/root:/bin/bash&lt;/SPAN&gt;"&amp;nbsp;to&amp;nbsp;"&lt;SPAN style="color: rgba(90, 90, 90, 0.933333); font-size: 18px;"&gt;root::0:0:root:/root:/bin/bash&lt;/SPAN&gt;".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f9f9f9; color: #3d3d3d; font-size: 15px; "&gt;&amp;nbsp; &amp;nbsp; Now&amp;nbsp;I don't need to enter a password,but&amp;nbsp;still need to enter a user name "root".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Why doesn't it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Startup information：&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;[ OK ] Started Permit User Sessions.&lt;BR /&gt;[ OK ] Started vsftpd FTP server.&lt;BR /&gt;[ OK ] Started Serial Getty on ttyS0.&lt;BR /&gt; Starting Set console scheme...&lt;BR /&gt;[ OK ] Started Ubuntu FAN network setup.&lt;BR /&gt;[ OK ] Started Set console scheme.&lt;BR /&gt;[ OK ] Created slice system-getty.slice.&lt;BR /&gt;[ OK ] Started Getty on tty1.&lt;BR /&gt;[ OK ] Reached target Login Prompts.&lt;BR /&gt;[ OK ] Started LSB: HPA's tftp server.&lt;BR /&gt;[ OK ] Started OpenBSD Secure Shell server.&lt;BR /&gt;[ OK ] Started LSB: network benchmark.&lt;BR /&gt;[ OK ] Started Lighttpd Daemon.&lt;BR /&gt;[ OK ] Started LXC network bridge setup.&lt;BR /&gt; Starting LXC Container Initialization and Autoboot Code...&lt;BR /&gt;[ OK ] Started LXC Container Initialization and Autoboot Code.&lt;BR /&gt;[ OK ] Started Samba NMB Daemon.&lt;BR /&gt; Starting Samba SMB Daemon...&lt;BR /&gt;[ OK ] Started Virtualization daemon.&lt;/P&gt;&lt;P&gt;Ubuntu 18.04.1 LTS localhost ttyS0&lt;/P&gt;&lt;P&gt;localhost login: root&lt;BR /&gt;Last login: Sun Jan 28 15:58:27 UTC 2018 on tty1&lt;BR /&gt;Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.14.47 aarch64)&lt;/P&gt;&lt;P&gt;* Documentation: &lt;A href="https://help.ubuntu.com" target="test_blank"&gt;https://help.ubuntu.com&lt;/A&gt;&lt;BR /&gt; * Management: &lt;A href="https://landscape.canonical.com" target="test_blank"&gt;https://landscape.canonical.com&lt;/A&gt;&lt;BR /&gt; * Support: &lt;A href="https://ubuntu.com/advantage" target="test_blank"&gt;https://ubuntu.com/advantage&lt;/A&gt;&lt;/P&gt;&lt;P&gt;root@localhost:~#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 03:29:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992604#M5123</guid>
      <dc:creator>lyh20218</dc:creator>
      <dc:date>2019-11-15T03:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: LS1012A Cannot login automatically as root</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992605#M5124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Hello &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="351453" data-username="lyh20218@163.com" href="https://community.nxp.com/people/lyh20218@163.com"&gt;li yh&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Please edit /etc/init/tty1.conf and replace the exec /sbin/getty ... line with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;exec /sbin/getty -n -l /bin/sh -8 38400 tty1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Yiping&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 09:49:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992605#M5124</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2019-11-18T09:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: LS1012A Cannot login automatically as root</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992606#M5125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thank you for your reply！&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 13.3333px;"&gt;But the file "tty1.conf" does not exist in the path "/etc/init/",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to solve this problem?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-size: 13.3333px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="00.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94487i57B9F1EAF6C70F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="00.jpg" alt="00.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2019 06:14:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992606#M5125</guid>
      <dc:creator>lyh20218</dc:creator>
      <dc:date>2019-11-28T06:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: LS1012A Cannot login automatically as root</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992607#M5126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Please edit the file /lib/systemd/system/getty@.service and change the line&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ExecStart=-/sbin/agetty --noclear %I $TERM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;ExecStart=-/sbin/getty/ --noclear -a root %I $TERM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 03:47:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992607#M5126</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2019-11-29T03:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: LS1012A Cannot login automatically as root</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992608#M5127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you for your reply！&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Now I've found&amp;nbsp;a way to solve this problem：&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 10pt;"&gt;edit the file /lib/systemd/system/serial-getty@.service and change the line&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 10pt;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;ExecStart=-/sbin/agetty -a root --keep-baud 115200,38400,9600 %I $TERM&lt;/P&gt;&lt;P style="border: 0px;"&gt;Thanks for your help！&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 07:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1012A-Cannot-login-automatically-as-root/m-p/992608#M5127</guid>
      <dc:creator>lyh20218</dc:creator>
      <dc:date>2019-11-29T07:17:49Z</dc:date>
    </item>
  </channel>
</rss>

