Date: Sat, 27 Jun 1998 11:42:18 -0400 (EDT) From: Bill Vermillion <bill@bilver.magicnet.net> To: freebsd-isp@FreeBSD.ORG Subject: Re: Homedir 'hiding' Message-ID: <199806271542.LAA02817@bilver.magicnet.net> In-Reply-To: <Pine.BSF.3.95q.980626123512.5215A-100000@mercury.jorsm.com> from Jeff Lynch at "Jun 26, 98 12:44:18 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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 <protected dir>/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 <some directory>, and then changing the group owner to the group you wish to deny. i eg chown <somedirectly> <badgroup> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806271542.LAA02817>