Change Login Banner #6499
Replies: 5 comments
-
Try to edit |
Beta Was this translation helpful? Give feedback.
-
In case you did'nt find the correct file, you could do: |
Beta Was this translation helpful? Give feedback.
-
I looked into the /etc/motd but its empty. And in update-motd.d, there are 3 Files called 10-uname, 85, 92-unattended-upgrades. The 10-uname contains:
And the 85-fwupd contains:
And the Folder "/run/motd.d" doesn't exists And the 92-unattended-upgrades contains:
|
Beta Was this translation helpful? Give feedback.
-
Found an entry in # Display message of the day information for cloud systems and
# minimum installs such as WSL or Docker
if [ -e /usr/bin/kali-motd ]; then
kali-motd
fi This also contains the message you want to edit: ┃ We have kept /usr/bin/python pointing to Python 2 for backwards
┃ compatibility. Learn how to change this and avoid this message:
┃ ⇒ https://www.kali.org/docs/general-use/python3-transition/ I removed the entry from profile.d alltogether cause I do not want to create a .hushlogin file for every user. |
Beta Was this translation helpful? Give feedback.
-
So I have found a roundabout way of doing it. Create a bash file of your motd (default for some dists is Open .bashrc and amend at the filepath to the end of the file with a optional comment. For example if I named one 01-custom (to use for ssh as well) in etc, I would add: # MOTD for every login
/etc/update-motd.d/01-custom This will appear at every login as .bashrc runs at every login. Comment is optional for future use and readability obviously. |
Beta Was this translation helpful? Give feedback.
-
Hello. I have an Kali WSL on Windows and everytime I launch it, It displays:
┏━(Message from Kali developers)
┃
┃ We have kept /usr/bin/python pointing to Python 2 for backwards
┃ compatibility. Learn how to change this and avoid this message:
┃ ⇒ https://www.kali.org/docs/general-use/python3-transition/
┃
┗━(Run “touch ~/.hushlogin” to hide this message)
But I want to change it (Not remove it). I searched everywhere but I found nothing. Please help
Beta Was this translation helpful? Give feedback.
All reactions