From owner-freebsd-questions@FreeBSD.ORG Wed Oct 6 07:35:19 2004 Return-Path: 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 89CC116A4CE for ; Wed, 6 Oct 2004 07:35:19 +0000 (GMT) Received: from emboss.bossbox.com (cpc2-tall1-5-0-cust19.dbln.cable.ntl.com [81.98.89.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2C6843D31 for ; Wed, 6 Oct 2004 07:35:18 +0000 (GMT) (envelope-from Brian@bossbox.com) Received: from bogbox ([192.168.0.2]) by emboss.bossbox.com (8.12.10/8.12.10) with ESMTP id i967ZGXL009001 for ; Wed, 6 Oct 2004 08:35:16 +0100 (IST) (envelope-from Brian@bossbox.com) Message-Id: <200410060735.i967ZGXL009001@emboss.bossbox.com> From: "Brian " To: Date: Wed, 6 Oct 2004 08:35:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcSrdwah/OC/9cKISXGGHraeUd3amg== Subject: Cp -Rp Nightmare unable to access /usr X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 07:35:19 -0000 Hi, I'm running a FreeBSD 5.2.1 test box at home for Apache,PHP,MySQL. I wanted to move the default mysql dabatse location from /var/db/mysql to /usr/mysql What I did was cp -Rp /var/db/mysql /usr I know now it was wrong for the most part I know how stupid this idea was. I now can't ssh to the box I get the error below Could not chdir to home directory /home/reports: Permission denied /usr/local/bin/bash: Permission denied What I'm looking to know is, what exactly have I done to /usr and if I'm at the console can I easiliy reverse what I did ? Thanks in advance. Brian --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004