RickR Posted November 15, 2018 Share Posted November 15, 2018 Hello, I have been trying to get a user to automatically log in onto one of the virtual consoles and everything I try seems to fail. 1. I crested the device with 'systemctl edit getty@tty2' 2. The resulting '/etc/systemd/system/getty@tty1.service.d/overide.conf' file has ExecStart=/sbin/agetty --autologin root tty1 38400 linux 3. systemctl daemon-reload 4. systemctl enable getty@tty1 5. systemctl start getty@tty1 6. systemctl status getty@tty1 Output: ● getty@tty1.service - Getty on tty1 Loaded: loaded (/lib/systemd/system/getty@.service; enabled; vendor preset: e Drop-In: /lib/systemd/system/getty@tty1.service.d └─10-noclear.conf /etc/systemd/system/getty@tty1.service.d └─override.conf Active: active (running) since Thu 2018-11-15 09:23:59 UTC; 1min 11s ago Docs: man:agetty(8) man:systemd-getty-generator(8) http://0pointer.de/blog/projects/serial-console.html Main PID: 5795 (agetty) Tasks: 1 (limit: 4915) CGroup: /system.slice/system-getty.slice/getty@tty1.service └─5795 /sbin/agetty --noclear tty1 linux And then nothing happens, I get a login prompt on all the first 6 consoles and it makes no difference which tty I use I just cannot get a user to autologin on one of the consoles. I have seen this error: Nov 15 09:32:40 dlogger systemd[1]: [/etc/systemd/system/getty@tty1.service.d/override.conf:1] Assignment outside of section. Ignoring. What have i done wrong or missed out? Thank you, Rick Link to comment Share on other sites More sharing options...
Recommended Posts