Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2001 12:17:19 -0500 (EST)
From:      Philip Mak <pmak@aaanime.net>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Stupid, stupid
Message-ID:  <Pine.LNX.4.30.0110281215010.19082-100000@sg1.indexthis.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.30.0110281215010.19082-100000>