LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-10-2016, 02:09 PM   #1
GooberJack
LQ Newbie
 
Registered: Aug 2016
Distribution: CentOS 6.4
Posts: 4

Rep: Reputation: Disabled
Question Logon Message After Entering Password


Hello,

I have a user that when they log into our CentOS server version 6.4) a message comes up after entering the password. The message only appears for this one user. I'm trying to understand how the message is generated and where it's stored and configured. I'd like to be able to create something like this for my own account and maybe others going forward. I'm guessing it's something to do with their profile but I'm brand new to Linux and CentOS so not sure at all where to begin. A quick search online mentions motd which I see in /etc but when I try to read it nothing appears on the screen.
 
Old 08-10-2016, 02:40 PM   #2
Beads
Member
 
Registered: Nov 2004
Location: Alabama
Distribution: Mint
Posts: 103

Rep: Reputation: 17
Open a terminal. Type "man motd". Gives a quick explanation for the Message Of The Day. Follow that direction.
Good luck!
 
Old 08-10-2016, 03:00 PM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,652
Blog Entries: 10

Rep: Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075
"man issue" also!
 
Old 08-10-2016, 03:25 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,980

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
well WHAT is this UNKNOWN message ?
 
Old 08-10-2016, 04:00 PM   #5
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,088

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by GooberJack View Post
I have a user that when they log into our CentOS server version 6.4) a message comes up after entering the password.
Does the message say words to the effect of "this server is hopelessly out of date, you should update it"? (Seriously, it shouldn't be running CentOS 6.4. 6.5 was released over two years ago, 6.8 was released in May this year.)

Quote:
Originally Posted by GooberJack View Post
I'm guessing it's something to do with their profile
Talking about people's "profile" is very Windows centric. It's not a term used in relation to Linux. In Linux all settings related to a user are in their home directory.(*) The message may be produced by the user in question’s ~/.bashrc or ~/.bash_profile Have a look in those files for the words that appear in the message.

Quote:
Originally Posted by GooberJack View Post
A quick search online mentions motd which I see in /etc but when I try to read it nothing appears on the screen.
On some distos /etc/motd is empty by default. If you put something in /etc/motd it will appear for all users when they log in via SSH or non-X sessions.

Maybe if you post the message this user is seeing someone here will recognise it.


(*) Except for desktop session preference on distros using AccountsService. The people who created AccountsService seem to have thought they needed to solve a problem that doesn't seem to actually exist, so AccountsService puts settings in /var/lib. https://bugzilla.redhat.com/show_bug.cgi?id=617465 CentOS 6 was related long enough ago to not use AccountsService though.
 
Old 08-10-2016, 05:37 PM   #6
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,652
Blog Entries: 10

Rep: Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075Reputation: 2075
I've always modified /etc/issue and /etc/issue.net for MOTD functionality.
 
Old 08-10-2016, 08:48 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,247

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
OP says
Quote:
The message only appears for this one user.
so its not motd.

Its either in one of their local profile files ~/.bashrc or ~/.bash_profile as per arizonagroovejet or (unlikely) in one of the global ones with a check for that particular user.
 
Old 08-11-2016, 04:37 AM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,120

Rep: Reputation: 190Reputation: 190
check the user profile.

Quote:
cat ~/.profile or cat ~/.bash_profile
check for any echo commands

like: echo "Welcome ${USER}, your're actually not welcome." or echo "Welcome $(whoami), your're actually not welcome."

or check which profile is used on your system
 
  


Reply

Tags
banner, centos, logon


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
entering without root password shanecaldeiro Linux - Newbie 8 05-29-2009 10:52 AM
Tntrepid does not allow entering any password jdtiede Ubuntu 1 01-18-2009 11:18 PM
System stops after entering password at logon amon Linux - Networking 0 11-14-2006 03:30 PM
Entering Password with a Space via CLI username132 Linux - Software 2 04-01-2006 10:57 PM
Sunbird - entering username and password hamish Linux - Software 1 06-15-2005 11:14 AM


All times are GMT -5. The time now is 10:54 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