Maintenance Commands sys-unconfig(1M) NAME sys-unconfig - undo a system's configuration SYNOPSIS /usr/sbin/sys-unconfig DESCRIPTION sys-unconfig packs up a machine to make it ready to be con- figured again. It restores a system's configuration to an "as-manufactured" state. A system's configuration consists of hostname, Net- work 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(1M), sysidnis(1M), and sysidsys(1M) programs run at boot. See sysidtool(1M). sys-unconfig does the following: o Saves current /etc/inet/hosts file information in /etc/inet/hosts.saved. o Restores the default /etc/inet/hosts file. o Removes the default hostname in /etc/hostname.??[0-9] and /etc/nodename. o Removes the default domainname in /etc/defaultdomain. o Restores the timezone to PST8PDT in /etc/TIMEZONE. o Disables the Network Information Service (NIS) and Net- work Information Service Plus (NIS+) if either NIS or NIS+ was configured. o Removes the entries for this host in /etc/net/*/hosts. o Removes the file /etc/inet/netmasks. o Removes the password set for root in /etc/shadow. o Removes the file /etc/.rootkey. o 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 shut- down. sys-unconfig is a potentially dangerous utility and can only be run by the super-user. FILES /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/.rootkey super-user's secret key /etc/shadow shadow password file /var/nis/NIS_COLD_START /var/yp/binding/*/ypservers ATTRIBUTES See attributes(5) for descriptions of the following attributes: __________________________________ | ATTRIBUTE TYPE| ATTRIBUTE VALUE| |__________________________________ | Availability | SUNWadmap | |_______________|_________________| SEE ALSO init(1M), kdmconfig(1M), sysidconfig(1M), sysidtool(1M), hosts(4), netmasks(4), shadow(4), attributes(5) SunOS 5.6 Last change: 6 Dec 1996 2