Hi guys, I am trying to set up a login password for my hardware but the problem is that my device uses automatic login. I checked online to comment out automatic login but it seems like my /lib/systemd/system/serial-getty\@.service contains the line "ExecStart=-/sbin/agetty -8 -L %I 921600 $TERM --autologin root" but before building the image i checked my service file and "ExecStart=-/sbin/agetty -8 -L %I @BAUDRATE@ $TERM". There is no mention of autologin and in my image recipe file I have not enabled it. After removing the line manually and reloading the service I can use the login creds to login but ssh login returns the message "permission denied".
I have attached the relevant files for your reference. Let me know if you need more information. Regards, Hassan
amlogic-yocto.bb
Description: Binary data
# SPDX-License-Identifier: LGPL-2.1+ # # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. [Unit] Description=Serial Getty on %I Documentation=man:agetty(8) man:systemd-getty-generator(8) Documentation=http://0pointer.de/blog/projects/serial-console.html PartOf=dev-%i.device ConditionPathExists=/dev/%i After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service getty-pre.target After=rc-local.service # If additional gettys are spawned during boot then we should make # sure that this is synchronized before getty.target, even though # getty.target didn't actually pull it in. Before=getty.target IgnoreOnIsolate=yes # IgnoreOnIsolate causes issues with sulogin, if someone isolates # rescue.target or starts rescue.service from multi-user.target or # graphical.target. Conflicts=rescue.service Before=rescue.service [Service] Environment="TERM=xterm" ExecStart=-/sbin/agetty -8 -L %I @BAUDRATE@ $TERM Type=idle Restart=always UtmpIdentifier=%I TTYPath=/dev/%I TTYReset=yes TTYVHangup=yes KillMode=process IgnoreSIGPIPE=no SendSIGHUP=yes [Install] WantedBy=getty.target
systemd-serialgetty.bb
Description: Binary data
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61283): https://lists.yoctoproject.org/g/yocto/message/61283 Mute This Topic: https://lists.yoctoproject.org/mt/101849757/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-