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 05-15-2006, 02:01 AM   #1
v1nc3nt
Member
 
Registered: Feb 2006
Location: East London ,South Africa
Distribution: Red Hat 9
Posts: 42

Rep: Reputation: 15
change hostname


how do i change my hostname from:

localhost.localdomain
to
nct-Main

also:

how do i add a message saying "welcome to this server" "unaouthorised access prohibited" to appear when sombody log in
 
Old 05-15-2006, 02:49 AM   #2
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
Lightbulb

Quote:
Originally Posted by v1nc3nt
how do i change my hostname from:

localhost.localdomain
to
nct-Main
$ su -
# hostname nct-Main

alternatively edit /etc/hosts file

Quote:
how do i add a message saying "welcome to this server" "unaouthorised access prohibited" to appear when sombody log in
Put "unaouthorised access prohibited" in /etc/issue & /etc/issue.net.
P.S. This will only work in case users are logging from command line,i.e, runlevel 3, doesn't works for GUI.

Last edited by nitinatindore; 05-15-2006 at 02:51 AM.
 
Old 05-15-2006, 02:58 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

Rep: Reputation: 68
/etc/sysconfig/network ?
/etc/issue , /etc/motd .
 
Old 05-15-2006, 03:40 AM   #4
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
Quote:
Originally Posted by v1nc3nt
how do i add a message saying "welcome to this server" "unaouthorised access prohibited" to appear when sombody log in
Use a spell-checker.
'unauthorized access prohibited'
 
  


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 do you change your Hostname? JGplt3095 Linux - Newbie 2 09-28-2005 03:02 PM
How do you change your hostname? Thaidog Linux - Newbie 6 07-24-2005 09:52 PM
Change HOSTNAME Belize Slackware 8 01-04-2005 04:42 PM
Hostname change AttOMIXT Linux - Newbie 2 11-02-2003 12:10 AM
change hostname kafnir Linux - Networking 1 10-21-2002 12:10 PM


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