From owner-freebsd-questions@FreeBSD.ORG Fri May 12 18:53:39 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 E7E0A16AD14 for ; Fri, 12 May 2006 18:53:39 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85FE943D73 for ; Fri, 12 May 2006 18:53:32 +0000 (GMT) (envelope-from ryallsd@gmail.com) Received: by wx-out-0102.google.com with SMTP id t13so377770wxc for ; Fri, 12 May 2006 11:53:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KOXRhdcUqlCxvn2iipFavs4oNEyiOeHhe5DjvLiLmHULh9FrjVVNRBJqCdeaI+amreNg7yUYiubPYNGcbxCZroljQ2uyhuPI+fU3NDBFFzD6hre6FNeN74QQXVTgbBGuyl7XJ2wI8icZ4pFMVJdv1qxOFhTSuVFgs97f0L/EJwU= Received: by 10.70.21.5 with SMTP id 5mr18442wxu; Fri, 12 May 2006 11:53:31 -0700 (PDT) Received: by 10.70.42.4 with HTTP; Fri, 12 May 2006 11:53:31 -0700 (PDT) Message-ID: Date: Fri, 12 May 2006 11:53:31 -0700 From: "Derrick Ryalls" To: "FreeBSD Questions" , "Lowell Gilbert" In-Reply-To: <44hd3vl4x1.fsf@be-well.ilk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44hd3vl4x1.fsf@be-well.ilk.org> Cc: Subject: Re: New folder permissions 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: Fri, 12 May 2006 18:53:45 -0000 On 5/12/06, Lowell Gilbert wrote: > "Derrick Ryalls" writes: > > > I am having issues getting correct permissions set for files in a > > common area on a web/file server. I have webroot shared out via samba > > and under there I have an auto-thumbnail generation script that > > creates thumbnails in somefolder/.cache where somefolder is a newly > > created folder. Example: > > > > autothumbs\ > > mypics1\ > > image.jpg > > .cache > > image_thumb.jpg > > mypics2\ > > .cache > > ... > > > > What needs to happen is when a new folder is created under this > > autothumb tree, the permissions need to be set correctly so that the > > .cache folder can be automatically generated by the thumbnail process. > > I have the main folder listed as root:wheel 777 but when new folders > > are created they have user:wheel 755 permissions and the thumbnail > > script fails as it cannot write to the location. > > > > Is there something I am missing to get this setup properly? I know a > > workaround is the manually change the permissions of the folder when > > it is created, but since my wife will be wanting to add pictures, that > > isn't an option for her (very non-techy). The machine in question a > > 5.4-Stable box. > > > > Any suggestions on what I need to do? > > There are a lot of ways to do this, but the one I would recommend is > to change the main folder to be owned by a group that you, your wife, > and the uid running the thumbnail script all are members of -- > probably by creating a new group for the purpose. Then if you set > your wife's umask to 002, directories she creates will be available to > you and any other members of the group. > Would I change the umask on the webserver or on her desktop? If on the desktop, then how does this work when she is booted into Windows? I do like the idea of this solution, but she doesn't even like shell access so .bashrc wouldn't be executed. Is there a way to set umask functionality somewhere else?