LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-01-2003, 06:57 PM   #1
darksky
Member
 
Registered: May 2003
Location: USA
Distribution: FreeBSD and Slackware 10
Posts: 50

Rep: Reputation: 15
Creating message after logging into runlevel 3.


Hi all,

On my FreeBSD box, I can edit the file /etc/motd and create my own message that will show after logging in (Runlevel 3 - no GUI login). Is there a way to do this in Red Hat 9?

Did that make sense???

Thanks.
 
Old 09-01-2003, 07:04 PM   #2
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
Well you could edit the /etc/motd just like you do in bsd.
 
Old 09-01-2003, 07:06 PM   #3
darksky
Member
 
Registered: May 2003
Location: USA
Distribution: FreeBSD and Slackware 10
Posts: 50

Original Poster
Rep: Reputation: 15
I had already tried that but it didn't work........
 
Old 09-01-2003, 07:15 PM   #4
darksky
Member
 
Registered: May 2003
Location: USA
Distribution: FreeBSD and Slackware 10
Posts: 50

Original Poster
Rep: Reputation: 15
DUH!!!!! It works much better when you edit the correct file. I tried to edit the /etc/modt file instead of the correct file, /etc/motd file.

Sorry about that!

By the way......it works.
 
Old 09-01-2003, 07:18 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
maybe I'm not understanding what you are trying to do but how about placing a line

echo message

in the .bashrc file of the user?
this will put the message on the screen.
 
Old 09-01-2003, 07:20 PM   #6
r00tnuke
Member
 
Registered: Aug 2003
Location: /earth/usa/texas/houston
Distribution: Fedora C2
Posts: 64

Rep: Reputation: 15
It's works on all my servers. They all come up init3 with ascii art, no problem. RedHat 8/9.

I also tried it at the workstation I'm on now which is GUI then crt+alt+f1 into terminal and there it was regardless of user login name.
 
Old 09-01-2003, 08:22 PM   #7
darksky
Member
 
Registered: May 2003
Location: USA
Distribution: FreeBSD and Slackware 10
Posts: 50

Original Poster
Rep: Reputation: 15
Yeah, I was just editing the wrong file. I've got it working.....
 
  


Reply



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
creating a logging mechanism marri Programming 3 06-16-2005 10:31 AM
displaying popuo message by daemon process running in runlevel 5 using xmessage kalpesh_rathod8 Programming 2 11-22-2004 03:19 AM
kernel 2.6.8 fedora message logging todd_seiler Fedora 5 09-19-2004 10:01 PM
Automatically logging in a user from runlevel 3 VxJasonxV Linux - General 9 02-29-2004 03:25 PM
Error message when logging into Gnome guitargeek Linux - Software 3 04-10-2003 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:11 PM.

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
Open Source Consulting | Domain Registration