From owner-freebsd-questions@FreeBSD.ORG Sun Dec 20 10:46:32 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 756B51065692 for ; Sun, 20 Dec 2009 10:46:32 +0000 (UTC) (envelope-from liweitian@gmail.com) Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.223.198]) by mx1.freebsd.org (Postfix) with ESMTP id 428AA8FC15 for ; Sun, 20 Dec 2009 10:46:32 +0000 (UTC) Received: by iwn36 with SMTP id 36so3048800iwn.3 for ; Sun, 20 Dec 2009 02:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=s/7AOFOfdxzFEr4u4uPOP0sbqqGO8IuTMFoyuHTt8Ek=; b=J/GnP4yfs65RJPMJawNawQj4zawAT/hUR6/VzwdNBH2UczMAzy8H/4wy6JFQS1B8Gq ZWo5QMhfgW/lKutpJGz/FEVTPKnj3oAuhtFqa7OXxu8r7sjfwCjg11Z7XYcoeHGldj2O kvHYujltqOIqVbAuJBTuYjn2wvEv/DogkOD1w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sMI1i7PmYu88wsdk/tpRyQ/Ukeys/U/OrGAA2LXHWXzTX9J9Qz7kQDlk0sx6n6Ri9C fTSEoWFQ659DeZ7WXJ13aPeSO1sH3u3E4+YnN4guSCeffq6qWDqssop6icRZgwSQMIyI WMGGIlolRZ4gTqm2ZAarUrcP4Usr51comP6oc= MIME-Version: 1.0 Received: by 10.231.121.164 with SMTP id h36mr3949153ibr.9.1261304288167; Sun, 20 Dec 2009 02:18:08 -0800 (PST) Date: Sun, 20 Dec 2009 17:18:08 +0700 Message-ID: <864079110912200218i26ccce96r2ec4b217c6452833@mail.gmail.com> From: Roby Sadeli To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: file and directory permission X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 10:46:32 -0000 Hi there. I have been using FreeBSD for some time but my skill is getting really rusty. I install nginx via the ports collection and it works just fine. The data files (html) is located in /usr/local/www/ and the directory permission is as follows: drwxrwxr-x 5 root wheel 512 Dec 20 15:54 www and I changed the user/group permission like this: # chown -R www:www /usr/local/www # chmod -R 775 /usr/local/www My id is user and looks like this: # id user uid=1001(user) gid=1001(user) groups=1001(user),0(wheel),80(www) I am trying to create a file in the /usr/local/www and I can't. Is there something wrong I did here? TIA for answers. Roby