Carlton <[EMAIL PROTECTED]> writes:
> All I want to do is change the host name on my laptop.
>
>  Numerous searches turn up to simply change the /etc/host file,  but it is 
> read only and won't accept the change.
>
> The man pages say not to use sysidconfig manually, so I don't know if it can 
> be done.

The *right* way is to use sys-unconfig to re-configure the net settings on
your box. 

For some purposes that's a little over the top though.

To change the hostname without sys-unconfig there are at least 3 files
you need to edit:

/etc/inet/hosts
/etc/nodename
/etc/hostname.* (where * is the name of your interface)

If you're on Solaris (rather than an OpenSolaris build) then you need to
add

/etc/inet/ipnodes

to that list.

Note that some other apps use the name of the host for other things and
may need updating.

Some of those files are marked read-only by default. If you're root and
using vi you can write to them with :w! otherwise use chmod.

HTH

Boyd
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to