sys-unconfig 是 Solaris 系統用於還原預設設定的指令,對新手方便但缺點是需重新配置所有項目,可能需重啟甚至前往機房操作。執行前需完成以下準備:
/etc/inet/hosts 為 /etc/inet/hosts.save。/etc/vfstab 含 NFS 掛載點,複製為 /etc/vfstab.orig。/etc/inet/hosts。/etc/hostname.××× 格式)。/etc/defaultdomain 中的預設域名。/etc/TIMEZONE 時區還原為 PST8PDT。/etc/nsswitch.conf 為系統預設內容。/etc/net/ti*/hosts 中本主機條目。/etc/inet/netmasks。/etc/defaultrouter。/etc/shadow 中 root 密碼。/etc/.rootkey。/etc/resolv.conf。/etc/ldap/ldap_client_cache/etc/ldap/ldap_client_file/etc/ldap/ldap_client_cred/etc/ldap/cachemgr.log完成上述步驟後,即可安全執行 sys-unconfig 重置系統配置。