LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   RedHat Generic Login Screen (http://www.linuxquestions.org/questions/linux-general-1/redhat-generic-login-screen-3687/)

bfloeagle 06-25-2001 06:54 AM

RedHat Generic Login Screen
 
Two things:

In Redhat (7.1 to be specific), how do you change the login in screen to say something other than what the version of RH is, the kernel, and the architecture of the machine?

Second, in the past I have noticed that this screen sorta automatically updates itself if it needs to. (I upgraded my kernel a little while back and it changed to tell me the kernel version.) Does anyone know how it does this?

Thanx for the help!
Andy

jharris 06-25-2001 07:09 AM

You doing a command line login on redhat or something graphical? If its command line then have a look /etc/issue - this is normally rewritten at boot time to reflect the kernel version etc... You might also have /etc/issue.net which is used for network (telnet etc) prompts.

HTH

Jamie...

bfloeagle 06-25-2001 07:11 AM

Command Line
 
I am using command line... You said this is set during reboot... Does the kernel do it or is it something RedHat specific? I dont know how other distros work b/c I have only used RH.

Andy

jharris 06-25-2001 07:48 AM

It's normally set in one of the startup scripts. It just runs 'uname' and a few other commands and pipes the output to /etc/issue. I'm not from the Redhat camp so can't say exactly where it is set but have a look in /etc/rc.d/???? and grep for mention of /etc/issue - that should find it.

Jamie...

drjimstuckinwin 06-25-2001 08:17 AM

Hi
At work so not certain, but I think the relevant file is /etc/rc.d/rclocal.
Jim

bfloeagle 06-25-2001 11:03 AM

Thanx!
 
Thanks for the input everyone! I will check it out when I get home!

Andy

DavidPhillips 06-26-2001 12:26 AM

fi

# 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©
echo "" > /etc/issue
echo "$R" >> /etc/issue
echo "Kernel $„uname -r¤ on $a $SMP$„uname -m¤" >> /etc/issue

cp -f /etc/issue /etc/issue©net
echo >> /etc/issue
fi


this was in my /etc/rc©d/rc©local

so for RH, this looks like the place to put whatever you want©

320mb 02-07-2004 04:53 PM

For anyone who uses Slackware, the script to edit is /etc/rc.d/rc.s
towards the bottom of the script just comment out the line:
Code:

echo " /bin/uname -sr ." > /etc/motd
this script overwrites /etc/motd after every re-boot!!

bfloeagle 02-07-2004 05:35 PM

Talk about digging up one of my old OLD threads...

Sheesh... :p


All times are GMT -5. The time now is 09:02 AM.