Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2011 09:38:02 +0100
From:      David DEMELIER <demelier.david@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Date of a FreeBSD installation
Message-ID:  <AANLkTinvjcRLJ-86c2AOkDHidiAkxh1zSe0ZCmkuw24j@mail.gmail.com>
In-Reply-To: <20110113203821.GA3646@libertas.local.camdensoftware.com>
References:  <4D2F606D.6090407@gmail.com> <20110113203821.GA3646@libertas.local.camdensoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/1/13 Chip Camden <sterling@camdensoftware.com>:
> Quoth David Demelier on Thursday, 13 January 2011:
>> Hello folks,
>>
>> I'm just guessing if there is a way to know a FreeBSD installation date.
>> We can't look after the uname -a ident since an update of the FreeBSD
>> kernel is possible.
>>
>> I think searching a file absolutely not touched ever in the system can
>> helps but which one?
>>
>> markand@Melon ~ $ ls -l /root/.cshrc
>> -rw-r--r-- =C2=A02 root =C2=A0wheel =C2=A0798 19 Jul 04:17 /root/.cshrc
>>
>> It seems that this file has the FreeBSD dist access time so can't refers
>> to neither.
>>
>> Do you have any clue?
>>
>> Cheers,
>>
>> --
>> David Demelier
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.=
org"
>
> The date on the /home symlink reflects my install date. =C2=A0I don't thi=
nk
> anything would touch that.
>
> --
> Sterling (Chip) Camden =C2=A0 =C2=A0| sterling@camdensoftware.com | 2048D=
/3A978E4F
> http://camdensoftware.com | http://chipsquips.com =C2=A0 =C2=A0 =C2=A0 | =
http://chipstips.com
>

And to be sure that anything can touch it you can add the the `uchf'
flag to the symlink :

markand@Melon ~ $ ls -l /home
lrwxr-xr-x  1 root  wheel  8 11 Jan 2011 /home -> usr/home
markand@Melon ~ $ sudo chflags uchg /home
markand@Melon ~ $ sudo touch /home
touch: /home: Operation not permitted

But be careful, apply `uchg' flag on /home and not /home/.

--=20
Demelier David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinvjcRLJ-86c2AOkDHidiAkxh1zSe0ZCmkuw24j>