Ask a Question related to FreeBSD, Design and Development.

  1. #1

    Default server name

    Hi all,

    Can any one please tell me how to change the name of the computer at the
    command prompt ie my name#


    Thanks

    Michael
    michael Christie Guest

  2. Similar Questions and Discussions

    1. I?ve got a problem writing files on the server side withFlash Media Server 2.0.2 and 2.0.3.
      Hello, I?ve got a problem writing files on the server side with Flash Media Server 2.0.2 and 2.0.3. The same code was working fine with an older...
    2. I have a flash movie running a http server but it needsto connect to another server in https.
      I have a flash movie running a http server but it needs to connect to another server in https. I am having problems when trying to open the url in...
    3. I have a flash movie running a http server but it needsto connect to another server in https
      I have a flash movie running a http server but it needs to connect to another server in https. I am having problems when trying to open the url in...
    4. Problems! WinNT Client -> WinXP Web Server -> Win2000 File Server
      Hi everyone, I have an WinXP Server and an ASP.NET application that access files in a third machine, Win2000 Server. I am using Windows...
    5. uploading fiels from one unix server to another server usin perl cgi script.
      Hi all, I have a task at hand , that of uplaoding file from server to another server and also pass 6 paramteres along with the file. ...
  3. #2

    Default Re: server name

    On Mon, 21 Feb 2005, michael Christie wrote:
    > Hi all,
    >
    > Can any one please tell me how to change the name of the computer at the
    > command prompt ie my name#
    >
    Run "hostname mynewname.com". You will also want to updatee /etc/rc.conf

    Rus
    --
    e: [email]rghf@vpscolo.com[/email] : t: 1-888-327-6330
    [url]http://www.vaserv.com[/url] - Coming soon. Email [email]sales@vaserv.com[/email] for more info
    [url]http://www.storemypic.com[/url] - Free Image Hosting
    [url]http://www.vpsforums.com[/url] - Talk for VPS users and Providers
    [url]http://www.jvds.com[/url] - VPS Hosting for the geeks

    Rus Foster Guest

  4. #3

    Default Re: server name

    I see what you mean, that may not help me as my host name is an ip
    address running in a jail. There for my host name at the command prompt
    is 192# if I change the ip to a name in the /etc/rc.conf I do not
    think the jail will run.

    Please advise

    thanks

    Michael


    On Mon, 2005-02-21 at 10:16 +0000, Rus Foster wrote:
    > On Mon, 21 Feb 2005, michael Christie wrote:
    >
    > > Hi all,
    > >
    > > Can any one please tell me how to change the name of the computer at the
    > > command prompt ie my name#
    > >
    >
    > Run "hostname mynewname.com". You will also want to updatee /etc/rc.conf
    >
    > Rus
    michael Christie Guest

  5. #4

    Default Re: server name

    Hi,
    >From the keyboard of michael Christie, written on Mon, Feb 21, 2005 at 09:31:23PM +1100:
    > I see what you mean, that may not help me as my host name is an ip
    > address running in a jail. There for my host name at the command prompt
    > is 192# if I change the ip to a name in the /etc/rc.conf I do not
    > think the jail will run.
    A hostname is not an IP-address.
    For a jail, the hostname is given in the commandline. You should change that
    for in case you have to restart the jail. Also, you should update /etc/hosts
    and /etc/rc.conf to refect the changes. This might be needed for e.g. running
    services like Apache and MySQL.

    Keep in mind, from man(8) jail:

    NOTE: If you plan to allow untrusted users to have root access inside the
    jail, you may wish to consider setting the
    security.jail.set_hostname_allowed sysctl variable to 0. Please see the
    management discussion later in this document as to why this may be a good
    idea. If you do decide to set this variable, it must be set before
    starting any jails, and once each boot.


    Grtz,
    --
    Eilko.
    Eilko Bos Guest

  6. #5

    Default Re: server name

    maybe i get this wrong, but do you just want to change the name that
    appears in your shell prompt? you can make up anything you want for
    that, but you have to consult the manpage for your shell.



    On Mon, 21 Feb 2005 11:44:47 +0100, Eilko Bos <tafkam@brasapen.org> wrote:
    > Hi,
    >
    > >From the keyboard of michael Christie, written on Mon, Feb 21, 2005 at 09:31:23PM +1100:
    > > I see what you mean, that may not help me as my host name is an ip
    > > address running in a jail. There for my host name at the command prompt
    > > is 192# if I change the ip to a name in the /etc/rc.conf I do not
    > > think the jail will run.
    >
    > A hostname is not an IP-address.
    > For a jail, the hostname is given in the commandline. You should change that
    > for in case you have to restart the jail. Also, you should update /etc/hosts
    > and /etc/rc.conf to refect the changes. This might be needed for e.g. running
    > services like Apache and MySQL.
    >
    > Keep in mind, from man(8) jail:
    >
    > NOTE: If you plan to allow untrusted users to have root access inside the
    > jail, you may wish to consider setting the
    > security.jail.set_hostname_allowed sysctl variable to 0. Please see the
    > management discussion later in this document as to why this may be a good
    > idea. If you do decide to set this variable, it must be set before
    > starting any jails, and once each boot.
    >
    > Grtz,
    > --
    > Eilko.
    > _______________________________________________
    > [email]freebsd-questions@freebsd.org[/email] mailing list
    > [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    >

    --
    Met vriendelijke groet,
    Bas Essers
    Bas Essers Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139