sys-unconfig(1M) manual page
Table of Contents
sys-unconfig - undo a system’s configuration
/usr/sbin/sys-unconfig
SUNWadmap
sys-unconfig packs up a machine to
make it ready to be configured again.
It restores a system’s configuration
to an ‘as-manufactured’ state. A system’s configuration consists of hostname,
Network Information Service (NIS
) domain name, timezone, IP
address, IP
subnet mask, and root password. This operation is the inverse of those performed
by the sysidnet, sysidnis, and sysidsys programs run at boot. (See sysidtool(1M)
).
sys-unconfig does the following:
- Saves current /etc/inet/hosts file information
in /etc/inet/hosts.saved.
- Restores the default /etc/inet/hosts file.
- Removes
the default hostname in /etc/hostname.??[0-9] and /etc/nodename.
- Removes the
default domainname in /etc/defaultdomain.
- Restores the timezone to PST8PDT
in /etc/TIMEZONE
.
- Disables the Network Information Service (NIS
) and Network
Information Service Plus (NIS+
) if either NIS
or NIS+
was configured.
- Removes
the entries for this host in /etc/net/*/hosts.
- Removes the file /etc/inet/netmasks.
- Removes the password set for root in /etc/shadow.
- Execute all system configuration
applications. These applications are defined by prior executions of a sysidconfig
-a application. (See sysidconfig(1M)
). When sys-unconfig is run, all system
configuration applications are passed one argument, -u.
When sys-unconfig
is finished, it performs a system shutdown.
sys-unconfig is a potentially
dangerous utility and can only be run by the super-user.
- /etc/default/init
- process control initialization
- /etc/defaultdomain
- /etc/hostname.??[0-9]
- /etc/inet/hosts
- host name database
- /etc/inet/netmasks
- network mask database
- /etc/net/*/hosts
- /etc/nodename
- /etc/shadow
- shadow password file
- /var/nis/NIS_COLD_START
- /var/yp/binding/*/ypservers
-
init(1M)
, kdmconfig(1M)
, sysidconfig(1M)
,
sysidtool(1M)
, hosts(4)
, netmasks(4)
, shadow(4)
sys-unconfig is not
available on diskless or dataless systems.
Table of Contents