ab6c
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Is there a text file I can review that has the configuration of the initial set up of the server?
Also, I have an offline server that is corrupted. I am trying to piece through the problem. I have several WTMP files and I am trying to read them. I am using last -f <file name> | less and am receiving output. However, I do not believe it is the complete output. I say this because when I look at the WTMP in a regular file editor I see many more IP addresses in that file versus the ouput of the last -f <file name> | less. I am also hitting page down or the down arrow till it says END. Are there any other commands I can run to ensure I am getting the complete output? |
|
#2
|
|||
|
|||
|
Quote:
/etc/defaults/rc.conf - the defaults Of course, there are other config files, eg sendmail.mc for mail, named.conf for bind etc, but the above are the main "system" ones. |
|
#3
|
|||
|
|||
|
One central config file for all software does not exist. /etc/rc.conf is the closest to that as you can get. If you're assuming it's modified, then it's useless. This is what backups, kern.securelevel, ro mounts, mtree and such are for.
As for wtmp, it's possible it has gotten corrupted. You can read out the structures quite easily using C. If you suspect corruption, read byte by byte rather then per utmp structure and use the string "tty" as start of entry and take it from there. See wtmp(5). |
|
#4
|
|||
|
|||
|
Thank you for the reply. What do you mean by using C and tty?
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What do pkg_delete -rf pkg-config\* | mfaridi | Installation and Maintenance of FreeBSD Ports or Packages | 4 | February 8th, 2009 22:14 |
| Initial Server Config File | bamcis | Installing & Upgrading | 0 | February 3rd, 2009 18:13 |
| Advice needed: logserver layout, config, ... | uisge | Web & Network Services | 1 | December 31st, 2008 16:24 |
| Change Config Options After Failed Install | ter2007 | Installing & Upgrading | 9 | December 23rd, 2008 14:59 |
| [XFCE] Xorg config not held | francach | Other Window Managers | 4 | December 20th, 2008 16:39 |