From owner-freebsd-isp Sat Jun 27 08:54:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA25132 for freebsd-isp-outgoing; Sat, 27 Jun 1998 08:54:29 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from magicnet.magicnet.net (root@magicnet.magicnet.net [204.96.116.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA25124 for ; Sat, 27 Jun 1998 08:54:25 -0700 (PDT) (envelope-from bill@bilver.magicnet.net) Received: from bilver.magicnet.net (uucp@localhost) by magicnet.magicnet.net (8.8.6/8.8.8) with UUCP id LAA16016 for freebsd-isp@freebsd.org; Sat, 27 Jun 1998 11:54:01 -0400 (EDT) Received: (from bill@localhost) by bilver.magicnet.net (8.8.5/8.7.3) id LAA02817 for freebsd-isp@freebsd.org; Sat, 27 Jun 1998 11:42:18 -0400 (EDT) From: Bill Vermillion Message-Id: <199806271542.LAA02817@bilver.magicnet.net> Subject: Re: Homedir 'hiding' In-Reply-To: from Jeff Lynch at "Jun 26, 98 12:44:18 pm" To: freebsd-isp@FreeBSD.ORG Date: Sat, 27 Jun 1998 11:42:18 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Recently Jeff Lynch said: > On Fri, 26 Jun 1998, Mikael Hugo wrote: > > > Try to 700 the parent directory (/home) > If you turn off read access to the world to home dirs, user > "nobody", will not be able to read public_html to dish out their > home pages. On a directory 'read' access means being able to list the directory. By having execute permission only on a directory you can read/execute files in that directory by specifying the path name to the file. If you type ls nothing happens. If you type ls /filename you will see the file. Wildcards don't work. The different uses of permission on directories vs files seems to confuse a great many people. Something that a lot of people don't seem to use/know/remember is that you can deny access to a group by changin the group permission to 0 - eg chmod 705 , and then changing the group owner to the group you wish to deny. i eg chown Then the owner and everybody WHO IS NOT IN BADGROUP can read/execute, but no one in BADGROUP will be able to access it. Permission are evaluated left to right - Owner, Group, Other. If you are in "badgroup" it won't let you in. Other - is only for those that DO NOT match owner or group. Bill -- bill@bilver.magicnet.net | bill@bilver.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message