Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
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
up vote 3 down vote accepted

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

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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