From owner-freebsd-isp Sat Jun 27 10:44:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA06718 for freebsd-isp-outgoing; Sat, 27 Jun 1998 10:44:00 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mercury.jorsm.com (mercury.jorsm.com [207.112.128.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA06707 for ; Sat, 27 Jun 1998 10:43:55 -0700 (PDT) (envelope-from jeff@mercury.jorsm.com) Received: from localhost (jeff@localhost) by mercury.jorsm.com (8.8.7/8.8.7) with SMTP id MAA04131 for ; Sat, 27 Jun 1998 12:43:55 -0500 (CDT) Date: Sat, 27 Jun 1998 12:43:55 -0500 (CDT) From: Jeff Lynch Reply-To: Jeff Lynch To: freebsd-isp@FreeBSD.ORG Subject: Re: Homedir 'hiding' In-Reply-To: <199806271542.LAA02817@bilver.magicnet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 27 Jun 1998, Bill Vermillion 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. I stand corrected. Also note that execute perms for other is required on: /home /home/username /home/username/public_html I seem to remember perms not working this well in my old ATT System V R3 days. Perhaps it's just old age setting in. Thanks for pointing it out. I just reset things on our end with: find /home -type d -path "/home/*/public_html" -exec chmod o-rw {} {}/.. \; And modified our home-brew newuser script to chmod 751 /home/$userdir /home/$userdir/public_html ========================================================================= Jeffrey A. Lynch JORSM Internet email: jeff@jorsm.com Northwest Indiana's Full-Service Provider Voice: (219)322-2180 927 Sheffield Avenue, Dyer, IN 46311 Autoresponse: info@jorsm.com http://www.jorsm.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message