From owner-freebsd-questions Wed Jan 1 10:31:29 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20DE537B401 for ; Wed, 1 Jan 2003 10:31:28 -0800 (PST) Received: from mtiwmhc13.worldnet.att.net (mtiwmhc13.worldnet.att.net [204.127.131.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 471F043EC2 for ; Wed, 1 Jan 2003 10:31:27 -0800 (PST) (envelope-from cswiger@mac.com) Received: from sec.local ([12.88.87.254]) by mtiwmhc13.worldnet.att.net (InterMail vM.5.01.05.12 201-253-122-126-112-20020820) with ESMTP id <20030101183125.EOMI20003.mtiwmhc13.worldnet.att.net@sec.local>; Wed, 1 Jan 2003 18:31:25 +0000 Received: from mac.com (prime.local [192.168.1.3]) by sec.local (8.12.6/8.12.6) with ESMTP id h01Dwmuf004632; Wed, 1 Jan 2003 08:59:04 -0500 (EST) (envelope-from cswiger@mac.com) Message-ID: <3E1333B4.6060005@mac.com> Date: Wed, 01 Jan 2003 13:30:12 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Dr. Richard E. Hawkins" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: symlinking from www area to files in home directory? References: <20030101180249.GA57160@slytherin.ds.psu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-2.0 required=8.0 tests=NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03, USER_AGENT,USER_AGENT_MOZILLA_UA,X_ACCEPT_LANG version=2.43 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dr. Richard E. Hawkins wrote: > I have made symlinks from /usr/local/www/data/ to within > www in my home directory. > > Some of the files for the class web sites (handouts, syllabi) are just > copies of things elsewhere in my home directory. > > I'd like to symlink from within www to these (and they have 644 > permissions), but apparently the lack of world execute permissions on > the directories is causing permission problems--and real links get out > of sync when I update the files. Make sure that you have FollowSymLinks enabled, for one. Next, you're right that directories need the execute bit set, but if you make the files group-owned by a group that the webserver runs as (perhaps "www-data"?), you can get by with 750 permissions on directories, and 640 permissions on files. -Chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message