login message


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers login message
# 1  
Old 02-19-2009
Question login message

hi friends.....can anyone help me out....
i want to display a message whenever a user logs in...like goodmorning,goodafternoon etc depending on the time of login.can anyone suggest a shell script for this????
# 2  
Old 02-19-2009
In UNIX system, there used to be something called message of the day, usually /etc/motd file that is read by default profile...

Now I have found here a similar thread, read Perderabo's post:
https://www.unix.com/unix-dummies-que...amic-motd.html
# 3  
Old 02-19-2009
edit /etc/default/telnetd

Add/edit the variable BANNER like:

BANNER="Welcome To My Server"

Save and exit the file.

Try to do telnet to the server to see the banner.

or you can edit/create the .profile file of the user ( its should be in HOMe dir )

and add

echo "Welcome to The server"
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Login message

My location is set to London. Why does the 2nd line of my welcome message say "You are somewhere around Glasgow."? (1 Reply)
Discussion started by: Robert W.Mills
1 Replies

2. Shell Programming and Scripting

How to change banner message for console login?

Hi All, Whenever I login to server via console, after providing username (root) it displays a banner message. I want to remove this message Serverabc : root Welcome to Server !!! Password: It is Centos 5.4 box. I have checked /etc/issue and /etc/motd. It does not... (8 Replies)
Discussion started by: kalpeer
8 Replies

3. Solaris

A DT Message error on login... other symptoms

First let me apologize for joining and posting... but this thing is killing me. I can usually solve these problems myself but I am reaching for help now. I have about 2 years Unix 8 experience but I am by no means an expert but not a newb either. A little background. My system runs a... (8 Replies)
Discussion started by: mpb218
8 Replies

4. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

5. HP-UX

telnet banner message before login

why I didn't set /etc/inetd.conf telnet stream tcp nowait root /usr/lbin/telnetd \ telnetd -b /etc/issue only telnet stream tcp nowait root /usr/lbin/telnetd in /etc/ineted.conf but when I telnet my HPUX machine it shows those message HP-UX hp1008 B.11.31 U ia64 (tb) login: ... (1 Reply)
Discussion started by: alert0919
1 Replies

6. UNIX for Dummies Questions & Answers

I want to change login failure message, "login incorrect"

I want to change login failure message, "login incorrect" deny user login for user id tom sudo passwd -l tom type username and type password on login prompt and then it will display login failure message "login incorrect" console ############ login: tom password: login incorrect... (2 Replies)
Discussion started by: lifegeek
2 Replies

7. UNIX for Dummies Questions & Answers

Remove login message

Hi All expert, I am about to perform remote shell to another unix server. But whenever i logged in into the remote server, the message prompt, "Setting up environment for MCI backend databases on Oracle 9.2^J" I'm suppose to rsh and cat a flat file that return only number. I tried "nohup"... (4 Replies)
Discussion started by: agathaeleanor
4 Replies

8. Programming

How to limit max no of message in a posix message queue

Hii can anyone pls tell how to limit the max no of message in a posix message queue. I have made changes in proc/sys/fs/mqueue/msg_max But still whenever i try to read the value of max. message in the queue using attr.mq_curmsgs (where struct mq_attr attr) its giving the default value as 10.... (0 Replies)
Discussion started by: mohit3884
0 Replies

9. UNIX for Dummies Questions & Answers

unix login welcome message

When I telnet to a unix server someone put a stupid message there: Last login: Mon Nov 15 16:59:13 from xxx.xxx.xxx.xxx Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001 YO! <-- message Mon Nov 15 17:19:05 EST 2004 How did they do it and how can I find out who did it? ... (17 Replies)
Discussion started by: webtekie
17 Replies
Login or Register to Ask a Question