Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2508

Raspberry Pi OS • Re: In What File Is This Message Written?

$
0
0

Code:

[root@system76:~]# grep -r --color 'programs included with the Debian GNU' /mnt//mnt/usr/share/base-files/motd:The programs included with the Debian GNU/Linux system are free software;/mnt/usr/share/debian-reference/ch01.en.html:The programs included with the Debian GNU/Linux system are free software;
my pi isnt currently running, but i found that string within /usr/share/base-files/motd
editing that file should allow you to change the message

i also found this in the sshd file for pam

Code:

# Print the message of the day upon successful login.# This includes a dynamically generated part from /run/motd.dynamic# and a static (admin-editable) part from /etc/motd.session    optional     pam_motd.so  motd=/run/motd.dynamicsession    optional     pam_motd.so noupdate
i assume something is copying /usr/share/base-files/motd to /run/motd.dynamic

Statistics: Posted by cleverca22 — Fri Aug 30, 2024 3:27 pm



Viewing all articles
Browse latest Browse all 2508

Trending Articles