LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-31-2003, 12:52 PM   #1
Jordanl
LQ Newbie
 
Registered: Nov 2002
Distribution: linux mandrake 7.2
Posts: 19

Rep: Reputation: 0
login message


ok does any one know how i can get it so that when users login they see a login message that i wrote? i found that if i go to like userconfig or something i can get to a tab that looks like i might be able to fill in my Owen message but it wont let me write in the box can someone help me
 
Old 01-31-2003, 01:54 PM   #2
rockdw
Member
 
Registered: Nov 2002
Location: Chicago, IL
Distribution: Rasbian, Debian, Gentoo, RHEL
Posts: 63

Rep: Reputation: 15
/etc/issue contains what you see on the console when you log in and /etc/motd is where you can put a "message of the day" for people to see when they log in.
 
Old 01-31-2003, 02:37 PM   #3
mad_ady
Member
 
Registered: Jan 2003
Location: I'm all in your mind!
Distribution: Debian
Posts: 248

Rep: Reputation: 30
You can modify /etc/issue and /etc/motd as rockdw suggested, but if when you start you don't see the desired message, check your /etc/rc.d/rc.local

Some distro's put some code in here that will overwrite your /etc/issue every time you boot.

Mine looks like this:


Code:
   # This will overwrite /etc/issue at every boot.  So, make any changes you
    # want to make to /etc/issue here or you will lose them when you reboot.

    if [ -x /usr/bin/linux_logo ];then
	/usr/bin/linux_logo -c -n -f | sed -e 's|\\|\\\\|g' > /etc/issue
	echo "" >> /etc/issue
    else
	> /etc/issue
    fi
    echo "$R" >> /etc/issue
    echo "Kernel $(uname -r) on $a $SMP$(uname -m) / \l" >> /etc/issue
It's easier to comment out all this part (add # in front of every line) and your file won't be overwritten!
 
Old 01-31-2003, 03:47 PM   #4
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
And modify /etc/issue.net for network logins. I'am guessing most of the users will be logged via ssh or telnet, and they will get /etc/issue.net and /etc/motd as messages.
HTH
-NSKL
 
  


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
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 10 03-11-2015 08:20 PM
Login greeting message(s) vietsoft Linux - General 1 08-13-2003 11:11 PM
Message that pops up when u login vapor Programming 11 07-13-2003 08:58 PM
Login message lost... yuzuohong Linux - General 7 07-03-2003 02:16 PM
login message killi Linux - General 3 06-27-2003 01:47 PM


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