Subject: Re: Shot my foot off with chmod (the smoking gun)
To: Video Mike <mike@cpdist.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 10/29/2002 14:55:08
On Tue, 29 Oct 2002, Video Mike wrote:
> In the name of Internet security, I used chmod to keep etc, home, and other
> directories and files from being seen from the web. I soon realized that I
How did you do this? (Recursively a-r?)
> login: mike
> passwd: *********
> No home directory /home/cdt!
So what is the following?
ls -ld /
ls -ld /home
ls -ld /home/cdt
> # su mike
> su: /bin/csh: Permission denied
ls -ld /bin
ls -ld /bin/csh
You may be able to fix some of your problems with mtree(8). Look at the -u
option.
Look at /etc/mtree/NetBSD.dist and /etc/mtree/special.
This should help you get started with the cleanup.
Good luck,
Jeremy C. Reed
http://www.reedmedia.net/