Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.