sethostname man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

sethostname(2)							sethostname(2)

NAME
       sethostname() - set name of current host system

SYNOPSIS
DESCRIPTION
       The  system call sets the name of the current system to name, which has
       a length of namelen characters.	At system boot time is	normally  exe‐
       cuted  by  the command (see hostname(1)) in the script.	Host names are
       limited to characters, as defined in

   Security Restrictions
       Prior to ContainmentExt B.11.31.03, the actions	associated  with  this
       system  call  require  the  privilege If ContainmentExt B.11.31.03 or a
       later version of HP-UX Containment product is installed on the  system,
       either  the privilege or the privilege is required.  Processes owned by
       the superuser have this privilege.  Processes owned by other users  may
       have this privilege, depending on system configuration.

       See  privileges(5) for more information about privileged access on sys‐
       tems that support fine-grained privileges.

RETURN VALUE
       returns the following values:

	      Successful completion.
	      Failure.
		     is set to indicate the error.

ERRORS
       If fails, is set to one of the following values.

	      name	     points  to	 an  illegal  address.	 The  reliable
			     detection	of this error is implementation depen‐
			     dent.

	      The user does not have appropriate privileges.

WARNINGS
       Setting a hostname of more than 64 bytes with is possible only with the
       appropriate  configuration  options  enabled (see nodehostnamesize(5)).
       It is strongly recommended that all related documentation be completely
       understood before setting a larger hostname.  A hostname larger than 64
       bytes can cause anomalous behavior or failure in applications which use
       the command or the system function to obtain the name.

AUTHOR
       was developed by the University of California, Berkeley.

SEE ALSO
       hostname(1),  uname(1),	gethostname(2), uname(2), nodehostnamesize(5),
       privileges(5).

								sethostname(2)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net