Date: Tue, 7 Jan 2003 12:39:28 -0600 From: "Kenzo" <kenzo_chin@hotmail.com> To: <freebsd-questions@FreeBSD.ORG> Subject: Re: Deleted VAR Message-ID: <DAV62wRFzYPKmnXdv240000e5e6@hotmail.com> References: <DAV28b3F45qHjDv4IiK00000142@hotmail.com> <15899.5780.980725.387591@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <mwm@mired.org> To: "Kenzo" <kenzo_chin@hotmail.com> Cc: <freebsd-questions@FreeBSD.ORG> Sent: Tuesday, January 07, 2003 12:04 PM Subject: Re: Deleted VAR > In <DAV28b3F45qHjDv4IiK00000142@hotmail.com>, Kenzo <kenzo_chin@hotmail.com> 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 > -- > Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DAV62wRFzYPKmnXdv240000e5e6>