From: Chris Eckert on 25 Apr 2010 16:14 hi, is there a way in solaris 10 u8 to retrieve a default (original) config file as shipped with the installation? for example /etc/hosts without any user-specific (post-installation) changes and with original perms and timestamp? chris
From: Ian Collins on 25 Apr 2010 17:11 On 04/26/10 08:14 AM, Chris Eckert wrote: > hi, > > is there a way in solaris 10 u8 to retrieve a > default (original) config file as shipped with > the installation? > > for example /etc/hosts without any user-specific > (post-installation) changes and with original > perms and timestamp? Take a snapshot of your root pool before making any changes. Otherwise no, /etc/hosts is built during the system identification install phase. -- Ian Collins
From: Chris Eckert on 25 Apr 2010 17:44 On 2010-04-25 23:11:49 +0200, Ian Collins <ian-news(a)hotmail.com> said: > On 04/26/10 08:14 AM, Chris Eckert wrote: >> hi, >> >> is there a way in solaris 10 u8 to retrieve a >> default (original) config file as shipped with >> the installation? >> >> for example /etc/hosts without any user-specific >> (post-installation) changes and with original >> perms and timestamp? > > Take a snapshot of your root pool before making any changes. Otherwise > no, /etc/hosts is built during the system identification install phase. ok, how do i roll back a single file from a root pool snapshot? chris -- CHRIS ECKERT eckert[at]alphanet.ch - http://www.alphanet.ch/~eckert gpg public key id 0xD08960E3
From: Ian Collins on 25 Apr 2010 18:04 On 04/26/10 09:44 AM, Chris Eckert wrote: > On 2010-04-25 23:11:49 +0200, Ian Collins <ian-news(a)hotmail.com> said: > >> On 04/26/10 08:14 AM, Chris Eckert wrote: >>> hi, >>> >>> is there a way in solaris 10 u8 to retrieve a >>> default (original) config file as shipped with >>> the installation? >>> >>> for example /etc/hosts without any user-specific >>> (post-installation) changes and with original >>> perms and timestamp? >> >> Take a snapshot of your root pool before making any changes. Otherwise >> no, /etc/hosts is built during the system identification install phase. > > ok, how do i roll back a single file from a root pool snapshot? Locate the file under /rpool/.zfs/snapshots and copy it back. -- Ian Collins
From: Stefan Krueger on 25 Apr 2010 18:13 On 2010-04-25, Chris Eckert <eckert(a)alphanet.ch> wrote: > hi, > > is there a way in solaris 10 u8 to retrieve a > default (original) config file as shipped with > the installation? > > for example /etc/hosts without any user-specific > (post-installation) changes and with original > perms and timestamp? > > chris How about using sys-unconfig(1M): "The sys-unconfig command is used to restore a system's configuration to an "as-manufactured" state, ready to be reconfigured again." Although I'm not sure you'll get your install timestamps, for perms you can use pkgchk's '-f' IIRC HTH
|
Next
|
Last
Pages: 1 2 Prev: autofs still does not map /export/home... Next: How to choose NFS as installation media? |