From owner-freebsd-questions Sun Oct 28 9:17:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sg1.indexthis.net (sg1.indexthis.net [66.33.60.115]) by hub.freebsd.org (Postfix) with ESMTP id 77F7837B406 for ; Sun, 28 Oct 2001 09:17:28 -0800 (PST) Received: from localhost (pmak@localhost) by sg1.indexthis.net (8.9.3/8.9.3) with ESMTP id MAA29704 for ; Sun, 28 Oct 2001 12:17:20 -0500 Date: Sun, 28 Oct 2001 12:17:19 -0500 (EST) From: Philip Mak X-Sender: To: Subject: Stupid, stupid Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 I just did a stupid thing to lock myself out of one of my boxes that I only have remote ssh access to. I thought I'd share it with you guys so that no one else makes the same mistake. Never type "chmod o-rx .*" when logged in as root, inside root's home directory (/root). That will affect .. as well, meaning that the directory "/" will no longer be accessible to normal users. Now I can't ssh into my box (any attempt to connect will say "Cannot find root directory" and kick me out) to fix this, so I have to wait for the guy who has physical access to the box to fix it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message