alperen-cpu/shell-welcome-message ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple shell based welcome message setup for Linux servers that shows a custom message when someone logs in, and can also email the login info to a mailbox using msmtp.
I want one script for CentOS 7 and one for Debian 11, so I can drop the right one in the system login flow and have it run automatically. Please make it easy to configure things like mail server, port, username, password, and the email address it sends from and to. It should include clear setup steps for installing msmtp, creating the config file, setting the right permissions, and testing that the email works.
For Debian, it should fit into the motd login message setup. For CentOS, it should work from the shell profile. Keep it practical and straightforward, with a friendly welcome message and a sample email output that looks clean when a user logs in. If you need current package or config details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit