LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2011, 10:05 AM   #1
charanjaitu
LQ Newbie
 
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29

Rep: Reputation: 0
MOTD


I want to display motd after entering username but before entering password. Is it possible?
 
Old 02-20-2011, 10:14 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
No, your choices are before username or after password.
 
Old 02-20-2011, 10:16 AM   #3
charanjaitu
LQ Newbie
 
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29

Original Poster
Rep: Reputation: 0
but i have seen one of my colleague using this. He is so stubborn , would not tell me this.
:P
 
Old 02-20-2011, 11:57 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,326

Rep: Reputation: 253Reputation: 253Reputation: 253
How do you connect? By ssh - or just local?
 
Old 02-20-2011, 05:43 PM   #5
charanjaitu
LQ Newbie
 
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29

Original Poster
Rep: Reputation: 0
i connect by putty
 
Old 02-20-2011, 06:08 PM   #6
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,326

Rep: Reputation: 253Reputation: 253Reputation: 253
Mmh - I have a Mac and use a native login, where you specify the login name already in the ssh command. I could imagine (when I look at some screenshost from putty), that it's putty who is asking for the "login:" name, not the machine you login to.

So you could use Banner /etc/foobar.txt in /etc/ssh/sshd_config (needs restart) to point to a file which should be listed.

There is also pam_echo, but this I didn't get working.

Last edited by Reuti; 02-20-2011 at 06:09 PM. Reason: Wrong dir corrected
 
Old 02-20-2011, 06:24 PM   #7
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Actually, there are a couple of different things you might be interested in:

1. Static banner
/etc/motd

2. Random "magic cookie"
fortune (e.g. "man 6 fortune")

3. If you *had* a "message of the day", and you *didn't* want to see it every login, you'd create a file named ".hushlogin" in your $HOME directory.

4. Here are more details:
http://www.freiburg.linux.de/projekt...ies-HOWTO.html

'Hope that helps .. PSM

Last edited by paulsm4; 02-20-2011 at 08:31 PM.
 
Old 02-20-2011, 06:29 PM   #8
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,326

Rep: Reputation: 253Reputation: 253Reputation: 253
pam_echo will be displayed also after entering the password (so no go here anyway) - I defined simply the wrong module for its invocation to work.
 
Old 02-22-2011, 10:04 AM   #9
charanjaitu
LQ Newbie
 
Registered: Apr 2010
Location: Jaitu
Distribution: CentOS
Posts: 29

Original Poster
Rep: Reputation: 0
Thanks all..
now its wrking
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/motd twandungen Linux - Newbie 1 02-13-2010 05:09 PM
/etc/motd skate Linux - Software 5 05-03-2006 09:44 AM
motd iomari Linux - Software 5 04-03-2005 05:43 AM
motd Master Fox Linux - Software 2 08-25-2004 08:40 AM
Is there any MOTD software available besides /etc/motd? csif Linux - Software 1 04-24-2004 07:36 AM


All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration