Интерактивная система просмотра системных руководств (man-ов)
sys-unconfig (1)
>> sys-unconfig (1) ( Solaris man: Команды и прикладные программы пользовательского уровня )
sys-unconfig (8) ( Русские man: Команды системного администрирования )
sys-unconfig (8) ( Linux man: Команды системного администрирования )
NAME
sys-unconfig - undo a system's configuration
SYNOPSIS
/usr/sbin/sys-unconfig
DESCRIPTION
The sys-unconfig command is used to restore a system's configuration to an "as-manufactured" state, ready to be reconfigured again. The 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(1M), sysidns(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
If the current /etc/vfstab file contains NFS mount entries, saves the /etc/vfstab file to /etc/vfstab.orig.
o
Restores the default /etc/inet/hosts file.
o
Removes the default hostname in /etc/hostname.interface files for all interfaces configured when this command is run. To determine which interfaces are configured, run the command 'ifconfig-a'. The /etc/hostname.interface files corresponding to all of the interfaces listed in the resulting output, with the exception of the loopback interface (lo0), will be removed.
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 Network Information Service Plus (NIS+) if either NIS or NIS+ was configured.
o
Removes the file /etc/inet/netmasks.
o
Removes the file /etc/defaultrouter.
o
Removes the password set for root in /etc/shadow.
o
Removes the file /etc/.rootkey.
o
Executes all system configuration applications. These applications are defined by prior executions of a sysidconfig-aapplication. (See sysidconfig(1M)). When sys-unconfig is run, all system configuration applications are passed one argument, -u.
o
Removes the file /etc/resolv.conf.
o
Removes the file /etc/sysidcfg.
o
Disables LDAP by removing /var/ldap/ldap_client_cache, /var/ldap/ldap_client_file, /var/ldap/ldap_client_cred, and /var/ldap/cachemgr.log.