From owner-freebsd-questions Tue Jan 7 10:39:33 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4597637B401 for ; Tue, 7 Jan 2003 10:39:31 -0800 (PST) Received: from hotmail.com (dav62.sea1.hotmail.com [207.68.162.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED8B943ED4 for ; Tue, 7 Jan 2003 10:39:29 -0800 (PST) (envelope-from kenzo_chin@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 7 Jan 2003 10:39:29 -0800 X-Originating-IP: [209.187.233.156] From: "Kenzo" To: References: <15899.5780.980725.387591@guru.mired.org> Subject: Re: Deleted VAR Date: Tue, 7 Jan 2003 12:39:28 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 07 Jan 2003 18:39:29.0705 (UTC) FILETIME=[1CE95990:01C2B67C] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Yes, that worked, but now I can't sshd to it anymore. looking in the auth.log file, it sais " Bind to port 22 on 0.0.0.0 failed address already in use. so I edit the file /etc/ssh/sshd_config to ListenAddress 10.25.2.60 ( the server's address ) then restart. in auth.log, it says " Server Listening on 10.25.2.60 port 22 but it still doesn't work. what else do I need to do? ----- Original Message ----- From: "Mike Meyer" To: "Kenzo" Cc: Sent: Tuesday, January 07, 2003 12:04 PM Subject: Re: Deleted VAR > In , Kenzo typed: > > Help, I accidently deleted everything in the /var dir. ( fat fingered ). > > Is there a way to retrive it? or do i have to reinstall. > > I'm now getting alot of error message since it's also a mail server. well > > not anymore. > > The stuff in /var tends to be dynamically created - mailboxes, log > files, installed package information, and other such things. You can't > reinstall that. This is probably the single most important directory > to back up. > > If you don't have backups, all you can do is recreate the directory > structure and some log files. You can recreate the directory tree with: > > /usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var" > > Check /etc/newsyslog.conf for a list of files in /var/log to touch, > what user:group should own them, and what mode they should > be. Rebooting would probably be advised as well, just to make sure all > the daemons are logging to their files and not to an inode that no > longer has a link on disk. > > -- > Mike Meyer http://www.mired.org/consulting.html > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message