ab6c Config File and WTMP - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old February 27th, 2009, 22:05
bamcis bamcis is offline
Junior Member
 
Join Date: Feb 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Config File and WTMP

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?
Reply With Quote
  #2  
Old February 28th, 2009, 03:10
trev trev is offline
Member
 
Join Date: Dec 2008
Posts: 343
Thanks: 13
Thanked 39 Times in 36 Posts
Default

Quote:
Originally Posted by bamcis View Post
Is there a text file I can review that has the configuration of the initial set up of the server?
/etc/rc.conf - changes and additions to defaults
/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.
Reply With Quote
  #3  
Old February 28th, 2009, 04:13
Mel_Flynn Mel_Flynn is offline
Member
 
Join Date: Nov 2008
Location: Drachten, Netherlands
Posts: 379
Thanks: 7
Thanked 74 Times in 57 Posts
Default

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).
Reply With Quote
  #4  
Old February 28th, 2009, 22:09
bamcis bamcis is offline
Junior Member
 
Join Date: Feb 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks for Reply

Thank you for the reply. What do you mean by using C and tty?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT +1. The time now is 16:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0