I have linux machine red-hat 5.1

I want to write ksh/bash script that perform the following

  1. Each time that someone login to the linux machine

    then he will get the following message on the screen - after entering login/password

        PLEASE DONT DO anything on this Linux machine !!!!

Please advice how to do that ? And where to put the ksh/bash script ?

  • why I get -1 - what wrong on my Question -:( -:( -:( – yael Jun 25 '12 at 13:02
  • Probably not professional enough question. – Janne Pikkarainen Jun 26 '12 at 13:37

Edit the /etc/motd file, no script needed.

  • If the users are connecting via SSH, we'll need to make sure PrintMotd yes is set in sshd_config yes? – EightBitTony Jun 25 '12 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.