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 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.
sys-unconfig does the following:
• 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.
• Restores the timezone to PST8PDT in /etc/TIMEZONE.
• 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.
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.
FILES
/etc/inet/hosts
/etc/TIMEZONE
/etc/hostname.??[0-9]
/etc/nodename
/etc/inet/netmasks
/etc/shadow
/etc/defaultdomain
/etc/net/∗/hosts
/var/nis/NIS_COLD_START
/var/yp/binding/∗/ypservers
SEE ALSO
BUGS
sys-unconfig is not available on diskless or dataless systems.
SunOS 5.1/x86 — Last change: 13 Oct 1991