sys-unconfig man page on SmartOS

Printed from

sys-unconfig(1M)	System Administration Commands	      sys-unconfig(1M)

       sys-unconfig - undo a system's configuration


       The sys-unconfig command is used to restore a system's configuration to
       an "as-manufactured" state, ready to be reconfigured  again.  The  sys‐
       tem's  configuration  consists of hostname, Network Information Service
       (NIS) domain name, timezone, IP address, IP subnet mask, and root pass‐
       word.  This  operation  is the inverse of those performed by the sysid‐
       net(1M), sysidns(1M), and sysidsys(1M) programs run at boot. See sysid‐

       sys-unconfig does the following:

	   o	  Saves	   current   /etc/inet/hosts   file   information   in

	   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 cor‐
		  responding  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

	   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 appli‐
		  cations 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.

	   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

	   o	  Regenerates keys for sshd(1M).

       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.


	   process control initialization


	   determines host's domain name


	   specifies an IPv4 host's default router


	   identifies  symbolic	 host  name  associated with network interface


	   host name database


	   network mask database


	   local source for system name


	   super-user's secret key


	   shadow password file


	   system identification configuration file for diskless booting


	   virtual file system table


	   list of NIS+ servers that serve a host's default domain


	   identifies NIS servers to which the client is allowed to bind

       See attributes(5) for descriptions of the following attributes:

       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       │Availability		     │SUNWadmap			   │

       init(1M),  sshd(1M),  sysidconfig(1M),  sysidtool(1M),  hosts(4),  net‐
       masks(4), shadow(4), sysidcfg(4), attributes(5)

       sys-unconfig is not available on diskless clients.

SunOS 5.11			  23 Jun 2009		      sys-unconfig(1M)

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net