logo       

Re: Shot my foot off with chmod (the smoking gun): msg#00353

os.netbsd.help

Subject: Re: Shot my foot off with chmod (the smoking gun)

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/




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise