1sys-unconfig(1M) System Administration Commands sys-unconfig(1M)
2
3
4
6 sys-unconfig - undo a system's configuration
7
9 /usr/sbin/sys-unconfig
10
11
13 The sys-unconfig command is used to restore a system's configuration to
14 an "as-manufactured" state, ready to be reconfigured again. The sys‐
15 tem's configuration consists of hostname, Network Information Service
16 (NIS) domain name, timezone, IP address, IP subnet mask, and root pass‐
17 word. This operation is the inverse of those performed by the sysid‐
18 net(1M), sysidns(1M), and sysidsys(1M) programs run at boot. See sysid‐
19 tool(1M).
20
21
22 sys-unconfig does the following:
23
24 o Saves current /etc/inet/hosts file information in
25 /etc/inet/hosts.saved.
26
27 o If the current /etc/vfstab file contains NFS mount entries,
28 saves the /etc/vfstab file to /etc/vfstab.orig.
29
30 o Restores the default /etc/inet/hosts file.
31
32 o Removes the default hostname in /etc/hostname.interface
33 files for all interfaces configured when this command is
34 run. To determine which interfaces are configured, run the
35 command 'ifconfig-a'. The /etc/hostname.interface files cor‐
36 responding to all of the interfaces listed in the resulting
37 output, with the exception of the loopback interface (lo0),
38 will be removed.
39
40 o Removes the default domainname in /etc/defaultdomain.
41
42 o Restores the timezone to PST8PDT in /etc/TIMEZONE.
43
44 o Disables the Network Information Service (NIS) and Network
45 Information Service Plus (NIS+) if either NIS or NIS+ was
46 configured.
47
48 o Removes the file /etc/inet/netmasks.
49
50 o Removes the file /etc/defaultrouter.
51
52 o Removes the password set for root in /etc/shadow.
53
54 o Removes the file /etc/.rootkey.
55
56 o Executes all system configuration applications. These appli‐
57 cations are defined by prior executions of a sysidconfig -a
58 application. (See sysidconfig(1M)). When sys-unconfig is
59 run, all system configuration applications are passed one
60 argument, -u.
61
62 o Removes the file /etc/resolv.conf.
63
64 o Removes the file /etc/sysidcfg.
65
66 o Disables LDAP by removing /var/ldap/ldap_client_cache,
67 /var/ldap/ldap_client_file, /var/ldap/ldap_client_cred, and
68 /var/ldap/cachemgr.log.
69
70 o Regenerates keys for sshd(1M).
71
72
73 When sys-unconfig is finished, it performs a system shutdown. sys-
74 unconfig is a potentially dangerous utility and can only be run by the
75 super user.
76
78 /etc/default/init
79
80 process control initialization
81
82
83 /etc/defaultdomain
84
85 determines host's domain name
86
87
88 /etc/defaultrouter
89
90 specifies an IPv4 host's default router
91
92
93 /etc/hostname.interface
94
95 identifies symbolic host name associated with network interface
96 interface
97
98
99 /etc/inet/hosts
100
101 host name database
102
103
104 /etc/inet/netmasks
105
106 network mask database
107
108
109 /etc/nodename
110
111 local source for system name
112
113
114 /etc/.rootkey
115
116 super-user's secret key
117
118
119 /etc/shadow
120
121 shadow password file
122
123
124 /etc/sysidcfg
125
126 system identification configuration file for diskless booting
127
128
129 /etc/vfstab
130
131 virtual file system table
132
133
134 /var/nis/NIS_COLD_START
135
136 list of NIS+ servers that serve a host's default domain
137
138
139 /var/yp/binding/*/ypservers
140
141 identifies NIS servers to which the client is allowed to bind
142
143
145 See attributes(5) for descriptions of the following attributes:
146
147
148
149
150 ┌─────────────────────────────┬─────────────────────────────┐
151 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
152 ├─────────────────────────────┼─────────────────────────────┤
153 │Availability │SUNWadmap │
154 └─────────────────────────────┴─────────────────────────────┘
155
157 init(1M), sshd(1M), sysidconfig(1M), sysidtool(1M), hosts(4), net‐
158 masks(4), shadow(4), sysidcfg(4), attributes(5)
159
161 sys-unconfig is not available on diskless clients.
162
163
164
165SunOS 5.11 23 Jun 2009 sys-unconfig(1M)