Professional Documents
Culture Documents
bpuwd3840ap6-LAB 31.1
bpuwd3840ap6-LAB 31.1
31.5. LABS 1
We are going to modify the Description for the unit responsible for login (getty) on the first console (tty1) and then change
it back.
We are assuming you are logged-in to your workstation either via the graphical interface or ssh. But a safety precaution, verify
that you are not logged in on this terminal:
$ tty
Very Important
If you see the result of this command as /dev/tty1, it’s probably best to skip this lab.
Warning: some journal files were not opened due to insufficient permissions.
2. Next, let’s change the description of the service. Copy the Description= line and make it say something different. In the
example, we are changing the dynamic output to first terminal.
[Unit]
Description=Getty on the first terminal
### /lib/systemd/system/getty@.service
# # SPDX-License-Identifier: LGPL-2.1-or-later
# #
# # 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=Getty on the first terminal<YOUR PROMPT HERE>
4. Reload the daemon to pick up our changes, and the check the results:
Warning: some journal files were not opened due to insufficient permissions.
$ sudo rm /etc/systemd/system/getty@tty1.service.d/override.conf
$ systemctl status getty@tty1.service
Warning: some journal files were not opened due to insufficient permissions.