LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   change hostname (https://www.linuxquestions.org/questions/linux-newbie-8/change-hostname-444882/)

v1nc3nt 05-15-2006 01:01 AM

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

nitinatindore 05-15-2006 01:49 AM

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.

raskin 05-15-2006 01:58 AM

/etc/sysconfig/network ?
/etc/issue , /etc/motd .

muha 05-15-2006 02:40 AM

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'


All times are GMT -5. The time now is 08:58 PM.